mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
ability to sort navigation
This commit is contained in:
@@ -24,6 +24,9 @@ define('admin/general/navigation', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#save').on('click', saveNavigation);
|
$('#save').on('click', saveNavigation);
|
||||||
|
|
||||||
|
$('#enabled').sortable();
|
||||||
|
$('#enabled').disableSelection();
|
||||||
};
|
};
|
||||||
|
|
||||||
function saveNavigation() {
|
function saveNavigation() {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
helpers.displayMenuItem = function(data, index) {
|
helpers.displayMenuItem = function(data, index) {
|
||||||
var item = data.navigation[index],
|
var item = data.navigation[index],
|
||||||
properites = item.properties;
|
properties = item.properties;
|
||||||
|
|
||||||
if (!item.enabled) {
|
if (!item.enabled) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user