diff options
Diffstat (limited to 'public/javascripts')
| -rw-r--r-- | public/javascripts/admin_interface.js | 4 | ||||
| -rw-r--r-- | public/javascripts/admin_search.js | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 3988016..c0e2d9c 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -57,6 +57,10 @@ $(document).ready(function () { | |||
| 57 | move_to_search.initialize_search(); | 57 | move_to_search.initialize_search(); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | if ($("#restore_search_term").length != 0) { | ||
| 61 | restore_search.initialize_search(); | ||
| 62 | } | ||
| 63 | |||
| 60 | if ($("#event_node_search_term").length != 0) { | 64 | if ($("#event_node_search_term").length != 0) { |
| 61 | event_search.initialize_search(); | 65 | event_search.initialize_search(); |
| 62 | } | 66 | } |
diff --git a/public/javascripts/admin_search.js b/public/javascripts/admin_search.js index d135503..b53c931 100644 --- a/public/javascripts/admin_search.js +++ b/public/javascripts/admin_search.js | |||
| @@ -262,6 +262,19 @@ move_to_search = { | |||
| 262 | } | 262 | } |
| 263 | }; | 263 | }; |
| 264 | 264 | ||
| 265 | restore_search = { | ||
| 266 | initialize_search : function() { | ||
| 267 | initSearchPicker({ | ||
| 268 | inputSelector: "#restore_search_term", | ||
| 269 | resultsSelector: "#restore_search_results", | ||
| 270 | onSelect: function(node) { | ||
| 271 | $("#restore_search_term").val(node.title); | ||
| 272 | $("#parent_id").val(node.node_id); | ||
| 273 | } | ||
| 274 | }); | ||
| 275 | } | ||
| 276 | }; | ||
| 277 | |||
| 265 | event_search = { | 278 | event_search = { |
| 266 | initialize_search : function() { | 279 | initialize_search : function() { |
| 267 | initSearchPicker({ | 280 | initSearchPicker({ |
