mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
closes #4977
This commit is contained in:
@@ -66,7 +66,7 @@ define('admin/general/navigation', ['translator', 'iconSelect'], function(transl
|
||||
data = id === 'custom' ? {iconClass: 'fa-navicon'} : available[id];
|
||||
|
||||
data.enabled = false;
|
||||
data.index = parseInt($('#enabled').children().last().attr('data-index'), 10) + 1;
|
||||
data.index = (parseInt($('#enabled').children().last().attr('data-index'), 10) || 0) + 1;
|
||||
|
||||
templates.parse('admin/general/navigation', 'navigation', {navigation: [data]}, function(li) {
|
||||
li = $(translator.unescape(li));
|
||||
|
||||
Reference in New Issue
Block a user