Fix that the current page of our list view pagination is not being highlighted

fixes #7492
This commit is contained in:
Johannes Meyer 2014-11-14 11:58:29 +01:00
parent 6624b764cf
commit f64b3c1439
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
var el = evt.target;
if (activeMenuId) {
// restore old menu state
$('[role="navigation"] li.active', el).removeClass('active');
$('#menu li.active', el).removeClass('active');
var $selectedMenu = $('#' + activeMenuId).addClass('active');
var $outerMenu = $selectedMenu.parent().closest('li');
if ($outerMenu.size()) {
@ -34,7 +34,7 @@
}
} else {
// store menu state
var $menus = $('[role="navigation"] li.active', el);
var $menus = $('#menu li.active', el);
if ($menus.size()) {
activeMenuId = $menus[0].id;
$menus.find('li.active').first().each(function () {