v1.18.x
pichalite 9 years ago
parent 6e0a36909d
commit 11be46ec23

@ -3,6 +3,8 @@
width: 100%; width: 100%;
min-height: 50px; min-height: 50px;
border: 1px solid #eee; border: 1px solid #eee;
overflow: auto;
.active { .active {
background-color: #eee; background-color: #eee;
} }

@ -13,17 +13,22 @@ define('admin/general/navigation', ['translator', 'iconSelect'], function(transl
}); });
translator.translate(translator.unescape($('#available').html()), function(html) { translator.translate(translator.unescape($('#available').html()), function(html) {
$('#available').html(html) app.loadJQueryUI(function() {
.find('li .drag-item').draggable({ $('#available').html(html)
connectToSortable: '#active-navigation', .find('li .drag-item').draggable({
helper: 'clone', connectToSortable: '#active-navigation',
distance: 10, helper: 'clone',
stop: drop distance: 10,
}); stop: drop
});
});
}); });
$('#active-navigation').sortable().droppable({ app.loadJQueryUI(function() {
accept: $('#available li .drag-item')
$('#active-navigation').sortable().droppable({
accept: $('#available li .drag-item')
});
}); });
$('#enabled').on('click', '.iconPicker', function() { $('#enabled').on('click', '.iconPicker', function() {

Loading…
Cancel
Save