diff options
Diffstat (limited to 'public/javascripts/admin_interface.js')
| -rw-r--r-- | public/javascripts/admin_interface.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index a792a87..7aeb0b1 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -3,6 +3,9 @@ $(document).ready(function () { | |||
| 3 | 3 | ||
| 4 | if ($("#menu_search_term").length != 0) { | 4 | if ($("#menu_search_term").length != 0) { |
| 5 | menu_items.initialize_search(); | 5 | menu_items.initialize_search(); |
| 6 | } | ||
| 7 | |||
| 8 | if ($("#menu_item_list").length != 0) { | ||
| 6 | menu_item_sorter.initialize(); | 9 | menu_item_sorter.initialize(); |
| 7 | } | 10 | } |
| 8 | 11 | ||
| @@ -122,7 +125,7 @@ menu_item_sorter = { | |||
| 122 | $("#menu_item_list").sortable({ | 125 | $("#menu_item_list").sortable({ |
| 123 | axis: 'y', | 126 | axis: 'y', |
| 124 | items: 'tr', | 127 | items: 'tr', |
| 125 | handle: 'td', | 128 | handle: 'td.menu_sort_handle', |
| 126 | placeholder: 'ui-state-highlight', | 129 | placeholder: 'ui-state-highlight', |
| 127 | start: function(e, ui) { | 130 | start: function(e, ui) { |
| 128 | menu_item_sorter.placeholder_helper(e,ui); | 131 | menu_item_sorter.placeholder_helper(e,ui); |
