Skip to content

Commit

Permalink
Resolving Issue #2591
Browse files Browse the repository at this point in the history
Drill down to some pages may be incorrect due to logic issues
  • Loading branch information
cigamit committed Apr 23, 2019
1 parent e33687e commit dea5970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Cacti CHANGELOG
-issue#2523: Test email failure on PHP 7.3
-issue#2589: DSStats throws errors when RRDfile has not been created
-issue#2590: Language selection is not working as expected
-issue#2591: Drill down to some pages may be incorrect due to logic issues
-issue#2592: Display graphs from this aggregate can not work
-issue#2593: Can not migrate aggregate to use a template
-issue#2598: Create aggregate without aggregate graph tempate, rrdtools error
Expand Down
10 changes: 4 additions & 6 deletions include/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -1753,10 +1753,10 @@ function loadPage(href, force) {
pageName = basename(hrefParts[0]);

if (pageName != '') {
if ($('#menu').find("a[href*='"+href+"']").length > 0) {
if ($('#menu').find("a[href^='"+href+"']").length > 0) {
$('#menu').find('.pic').removeClass('selected');
$('#menu').find("a[href*='"+href+"']").addClass('selected');
} else {
$('#menu').find("a[href^='"+href+"']").addClass('selected');
} else if ($('#menu').find("a[href*='/"+pageName+"']").length > 0) {
$('#menu').find('.pic').removeClass('selected');
$('#menu').find("a[href*='/"+pageName+"']").addClass('selected');
}
Expand Down Expand Up @@ -2642,9 +2642,7 @@ function keepWindowSize() {
$('.ellipsis').show();
}
}, 50, 'resize-content');
});

$(window).trigger('resize');
}).trigger('resize')
}

function hideCurrentTab(id, shrinking) {
Expand Down

0 comments on commit dea5970

Please sign in to comment.