diff options
| author | hukl <contact@smyck.org> | 2009-09-13 13:36:42 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-13 13:36:42 +0200 |
| commit | c91ac2f125d622df59d13f263887c6c8a8adedcb (patch) | |
| tree | d24fa90e25981847f2d7ed5070542ae38e67bd2a /public | |
| parent | abe9b1354188de0d6b30cb6ccee5a94f96f17f36 (diff) | |
the sorter needed a seperate initializer
Diffstat (limited to 'public')
| -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); |
