Showing
5 changed files
with
40 additions
and
3 deletions
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
... | @@ -29,6 +29,15 @@ body { | ... | @@ -29,6 +29,15 @@ body { |
29 | display: inline-block !important; | 29 | display: inline-block !important; |
30 | } | 30 | } |
31 | 31 | ||
32 | +.appIndex { | ||
33 | + font-size: 12px; | ||
34 | + text-align: right; | ||
35 | +} | ||
36 | + | ||
37 | +.appIndexSummary { | ||
38 | + font-size: 12px; | ||
39 | +} | ||
40 | + | ||
32 | .appLabeledObjectsBodyTD { | 41 | .appLabeledObjectsBodyTD { |
33 | padding: 0px 0px 1px 0px; | 42 | padding: 0px 0px 1px 0px; |
34 | } | 43 | } | ... | ... |
... | @@ -73,6 +73,18 @@ function appAddRow(id, single) { | ... | @@ -73,6 +73,18 @@ function appAddRow(id, single) { |
73 | 73 | ||
74 | 74 | ||
75 | /** | 75 | /** |
76 | + * Programmatically closes and destroys the elements of a dialog that was previously | ||
77 | + * loaded through a ui:loadable. | ||
78 | + * @param loadId the id of the loadable surrounding the dialog | ||
79 | + */ | ||
80 | +function appCloseDialog(loadId) { | ||
81 | + var div = $('#div-' + loadId); | ||
82 | + div.dialog("destroy"); | ||
83 | + div.remove(); | ||
84 | +} | ||
85 | + | ||
86 | + | ||
87 | +/** | ||
76 | * Called when the user clicks delete to delete a row from a widget. | 88 | * Called when the user clicks delete to delete a row from a widget. |
77 | * This completely deletes the element with the given id. | 89 | * This completely deletes the element with the given id. |
78 | * The hidden fields to instruct the server that the given object | 90 | * The hidden fields to instruct the server that the given object |
... | @@ -108,7 +120,7 @@ function appInitAutoComplete(id, hiddenId, link) { | ... | @@ -108,7 +120,7 @@ function appInitAutoComplete(id, hiddenId, link) { |
108 | return item.label; | 120 | return item.label; |
109 | }, | 121 | }, |
110 | select : function(event, ui) { | 122 | select : function(event, ui) { |
111 | - $('#' + hiddenId).val(ui.item.resource); | 123 | + $('#' + hiddenId).val('<' + ui.item.resource + '>'); |
112 | } | 124 | } |
113 | }); | 125 | }); |
114 | } | 126 | } |
... | @@ -312,6 +324,22 @@ function appNavigateToInTab(resourceURI, queryGraphURI) { | ... | @@ -312,6 +324,22 @@ function appNavigateToInTab(resourceURI, queryGraphURI) { |
312 | } | 324 | } |
313 | 325 | ||
314 | 326 | ||
327 | +// Private | ||
328 | +function appOpenIndexLetterDialog(loadId, letter) { | ||
329 | + appLoad(loadId, { letter: '"' + letter + '"' }, function() { | ||
330 | + var div = $('#div-' + loadId); | ||
331 | + var title = div.attr('title'); | ||
332 | + var options = { | ||
333 | + modal: true, | ||
334 | + title: title, | ||
335 | + width: 500, | ||
336 | + height: 400 | ||
337 | + }; | ||
338 | + div.dialog(options); | ||
339 | + }); | ||
340 | +} | ||
341 | + | ||
342 | + | ||
315 | /** | 343 | /** |
316 | * Loads and then opens a dialog that was inserted into the current | 344 | * Loads and then opens a dialog that was inserted into the current |
317 | * document using app:ResourceViewDialog. | 345 | * document using app:ResourceViewDialog. | ... | ... |
... | @@ -82,8 +82,8 @@ rhswp:AGResourceViewDialog | ... | @@ -82,8 +82,8 @@ rhswp:AGResourceViewDialog |
82 | ] | 82 | ] |
83 | ] ; | 83 | ] ; |
84 | ui:childIndex 0 ; | 84 | ui:childIndex 0 ; |
85 | - ui:varName "noLinks"^^xsd:string ; | 85 | + ui:varName "createLinkFunction"^^xsd:string ; |
86 | - ui:varValue "true"^^xsd:boolean | 86 | + ui:varValue <http://appschema.org/noLink> |
87 | ] ; | 87 | ] ; |
88 | ui:childIndex 0 | 88 | ui:childIndex 0 |
89 | ] ; | 89 | ] ; | ... | ... |
-
Please register or login to post a comment