Skip to content

Commit

Permalink
Resolving Issue Cacti#2910
Browse files Browse the repository at this point in the history
Can not show user_menu under portrait mode on mobile device
  • Loading branch information
cigamit committed Sep 1, 2019
1 parent 000c3e2 commit 6b22abb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Cacti CHANGELOG
-issue#2907: SSL column for multiple pollers can be incorrectly set causing SQL errors
-issue#2908: When URL_PATH is blank, it should assume that it is '/'
-issue#2909: Correct usage of affect vs effect in strings
-issue#2910: Can not show user_menu under portrait mode on mobile device
-issue#2911: No rrd file created after executed poller
-issue#2912: Resolve navigation caching array to string conversion issues
-issue#2913: Selection "Graph type" not saved and restored after going to page two
Expand Down
13 changes: 8 additions & 5 deletions include/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2670,16 +2670,19 @@ function keepWindowSize() {

function hideCurrentTab(id, shrinking) {
if ($('#'+id+'-ellipsis').length == 0) {
var myid = id+'-ellipsis';
var href = $('#'+id).attr('href');
var text = $('#'+id).text();
var myid = id+'-ellipsis';
var href = $('#'+id).attr('href');
var selected = $('#'+id).hasClass('selected');
var text = $('#'+id).text();

if (shrinking) {
$('#submenu-ellipsis').prepend('<li><a id="'+myid+'" href="'+href+'">' + text + '</a></li>');
$('#submenu-ellipsis').prepend('<li><a class="lefttab' + (selected ? ' selected':'') + '" id="'+myid+'" href="'+href+'">' + text + '</a></li>');
} else {
$('#submenu-ellipsis').append('<li><a id="'+myid+'" href="'+href+'">' + text + '</a></li>');
$('#submenu-ellipsis').append('<li><a class="lefttab' + (selected ? ' selected':'') + '" id="'+myid+'" href="'+href+'">' + text + '</a></li>');
}

setupResponsiveMenuAndTabs();

$('#'+id).parent().hide();
}
}
Expand Down

0 comments on commit 6b22abb

Please sign in to comment.