/* +-------------------------------------------------------------------------+ | Copyright (C) 2004-2026 The Cacti Group | | | | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU General Public License | | as published by the Free Software Foundation; either version 2 | | of the License, or (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU General Public License for more details. | +-------------------------------------------------------------------------+ | Cacti: The Complete RRDTool-based Graphing Solution | +-------------------------------------------------------------------------+ | This code is designed, written, and maintained by the Cacti Group. See | | about.php and/or the AUTHORS file for specific developer information. | +-------------------------------------------------------------------------+ | http://www.cacti.net/ | +-------------------------------------------------------------------------+ */ function themeReady() { if ($('#cactiPageBottom').length == 0) { $('
').insertAfter('#cactiContent'); } // Setup the navigation menu setMenuVisibility(); // Add nice search filter to filters if ($('input[id="filter"]').length > 0 && $('input[id="filter"]').next('i[class="ti ti-search filter"]').length < 1) { $('input[id="filter"]').after("").attr('autocomplete', 'off').attr('placeholder', searchFilter).parent('td').css('white-space', 'nowrap'); } if ($('input[id="filterd"]').length > 0 && $('input[id="filterd"]').next('i[class="ti ti-search filter"]').length < 1) { $('input[id="filterd"]').after("").attr('autocomplete', 'off').attr('placeholder', searchFilter).parent('td').css('white-space', 'nowrap'); } if ($('input[id="rfilter"]').length > 0 && $('input[id="rfilter"]').next('i[class="ti ti-search filter"]').length < 1 && $('input[id="rfilter"]').closest('.cactiFilterEditTable').length < 1) { $('input[id="rfilter"]').after("").attr('autocomplete', 'off').attr('placeholder', searchRFilter).parent('td').css('white-space', 'nowrap'); } $('input#filter, input#rfilter').addClass('ui-state-default ui-corner-all'); $('input[type="text"], input[type="password"], input[type="checkbox"], textarea').not('image').addClass('ui-state-default ui-corner-all'); /* Start clean up */ //login page $('.cactiLoginLogo').html("").css('font-size: 20px'); /* clean up the navigation menu */ $('.cactiConsoleNavigationArea').find('#menu').appendTo($('.cactiConsoleNavigationArea').find('#navigation')); $('.cactiConsoleNavigationArea').find('#navigation > table').remove(); $('.maintabs nav ul li a.lefttab').each( function() { id = $(this).attr('id'); if (id == 'tab-graphs' && $(this).parent().hasClass('maintabs-has-submenu') == 0 ) { $(this).parent().addClass('maintabs-has-submenu'); $('