v1.18.x
psychobunny 10 years ago
parent d806cd134f
commit 6c0efa09c0

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

Loading…
Cancel
Save