"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/themes/midwinter/main.js" between
cacti-1.2.21.tar.gz and cacti-1.2.22.tar.gz

About: Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality.

main.js  (cacti-1.2.21):main.js  (cacti-1.2.22)
skipping to change at line 108 skipping to change at line 108
$('#mdw_tree').addClass('hide'); $('#mdw_tree').addClass('hide');
} }
} }
function setupTheme() { function setupTheme() {
let storage = Storages.localStorage; let storage = Storages.localStorage;
let midWinter_Color_Mode = storage.get('midWinter_Color_Mode'); let midWinter_Color_Mode = storage.get('midWinter_Color_Mode');
let midWinter_Color_Mode_Auto = storage.get('midWinter_Color_Mode_Auto'); let midWinter_Color_Mode_Auto = storage.get('midWinter_Color_Mode_Auto');
let midWinter_Font_Size = storage.get('midWinter_Font_Size'); let midWinter_Font_Size = storage.get('midWinter_Font_Size');
// -- login, logout -- rewrite
if ($('.loginArea legend').length !== 0) {
$('.loginArea legend').text('Cacti Monitoring');
$('.loginTitle p').html('v'+cactiVersion);
$('#login_username, #login_password').attr('placeholder', '');
}
// -- standard mode -- add user tabs to CactiPageHeader // -- standard mode -- add user tabs to CactiPageHeader
if ($('.usertabs').length === 0) { if ($('.usertabs').length === 0) {
$('.infoBar, .menuHr, #userDocumentation, #userCommunity').remove (); $('.infoBar, .menuHr, #userDocumentation, #userCommunity').remove ();
$('.loggedInAs').show(); $('.loggedInAs').show();
let user_tab_content = let user_tab_content =
'<ul>' '<ul>'
+ '<li><a id="menu-user-help" class="usertabs-submenu" hr ef="#"><i class="far fa-comment-alt"></i></a></li>' + '<li><a id="menu-user-help" class="usertabs-submenu" hr ef="#"><i class="far fa-comment-alt"></i></a></li>'
+ '<li class="action-icon-user"><a class="pic" href="#">< i class="far fa-user"></i></a></li>' + '<li class="action-icon-user"><a class="pic" href="#">< i class="far fa-user"></i></a></li>'
+ '</ul>'; + '</ul>';
skipping to change at line 846 skipping to change at line 853
$(this).find('ul').attr('aria-hidden', 'true').attr('aria -expanded', 'false').hide(); $(this).find('ul').attr('aria-hidden', 'true').attr('aria -expanded', 'false').hide();
$(this).next('a').hide(); $(this).next('a').hide();
storage.set($(this).closest('.menuitem').attr('id'), 'col lapsed'); storage.set($(this).closest('.menuitem').attr('id'), 'col lapsed');
} else { } else {
$(this).find('ul').attr('aria-hidden', 'false').attr('ari a-expanded', 'true').show(); $(this).find('ul').attr('aria-hidden', 'false').attr('ari a-expanded', 'true').show();
$(this).next('a').show(); $(this).next('a').show();
storage.set($(this).closest('.menuitem').attr('id'), 'act ive'); storage.set($(this).closest('.menuitem').attr('id'), 'act ive');
} }
}); });
// Functon to give life to the Navigation pane // Function to give life to the Navigation pane
$('#nav li:has(ul) a.active').off().on('click', function(event) { $('#nav li:has(ul) a.active').off().on('click', function(event) {
event.preventDefault(); event.preventDefault();
let id = $(this).closest('.menuitem').attr('id'); let id = $(this).closest('.menuitem').attr('id');
if ($(this).next().is(':visible')) { if ($(this).next().is(':visible')) {
$(this).next('ul').attr('aria-hidden', 'true').attr('aria -expanded', 'false'); $(this).next('ul').attr('aria-hidden', 'true').attr('aria -expanded', 'false');
$(this).next().slideUp( { duration: 200, easing: 'swing' } ); $(this).next().slideUp( { duration: 200, easing: 'swing' } );
storage.set(id, 'collapsed'); storage.set(id, 'collapsed');
} else { } else {
 End of changes. 2 change blocks. 
1 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)