|
|
|
@ -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));
|
|
|
|
|