From 254428726902628be1014443cbd5263212d975cb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 25 Aug 2016 22:16:54 +0300 Subject: [PATCH] closes #4977 --- public/less/admin/general/navigation.less | 3 ++- public/src/admin/general/navigation.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/less/admin/general/navigation.less b/public/less/admin/general/navigation.less index e56f4cc409..86fd3cae62 100644 --- a/public/less/admin/general/navigation.less +++ b/public/less/admin/general/navigation.less @@ -1,7 +1,8 @@ #navigation { #active-navigation { width: 100%; - + min-height: 50px; + border: 1px solid #eee; .active { background-color: #eee; } diff --git a/public/src/admin/general/navigation.js b/public/src/admin/general/navigation.js index 94fbe01549..9ebdce555a 100644 --- a/public/src/admin/general/navigation.js +++ b/public/src/admin/general/navigation.js @@ -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));