mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 01:45:47 +01:00
closes #4977
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
#navigation {
|
#navigation {
|
||||||
#active-navigation {
|
#active-navigation {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-height: 50px;
|
||||||
|
border: 1px solid #eee;
|
||||||
.active {
|
.active {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ define('admin/general/navigation', ['translator', 'iconSelect'], function(transl
|
|||||||
data = id === 'custom' ? {iconClass: 'fa-navicon'} : available[id];
|
data = id === 'custom' ? {iconClass: 'fa-navicon'} : available[id];
|
||||||
|
|
||||||
data.enabled = false;
|
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) {
|
templates.parse('admin/general/navigation', 'navigation', {navigation: [data]}, function(li) {
|
||||||
li = $(translator.unescape(li));
|
li = $(translator.unescape(li));
|
||||||
|
|||||||
Reference in New Issue
Block a user