diff --git a/public/src/admin/general/navigation.js b/public/src/admin/general/navigation.js index 6b0de51420..a5b1efb439 100644 --- a/public/src/admin/general/navigation.js +++ b/public/src/admin/general/navigation.js @@ -8,11 +8,9 @@ define('admin/general/navigation', function() { navigation.init = function() { available = JSON.parse(ajaxify.variables.get('available')); - $('#save').on('click', save); - $('.delete').on('click', remove); - $('.toggle').on('click', toggle); - $('#enabled') + .on('click', '.delete', remove) + .on('click', '.toggle', toggle) .sortable() .droppable({ accept: $('#available li') @@ -25,6 +23,8 @@ define('admin/general/navigation', function() { distance: 10, stop: drop }); + + $('#save').on('click', save); }; function drop(ev, ui) {