mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Correct code to match code standards
This commit is contained in:
@ -137,6 +137,18 @@ function submitCustomRange(frmdata) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function updateResolution()
|
||||
{
|
||||
$.post(
|
||||
'ajax_setresolution.php',
|
||||
{width: $(window).width(),height:$(window).height()},
|
||||
function(json) {},
|
||||
'json'
|
||||
);
|
||||
}
|
||||
|
||||
$(window).on('resize', function(){ updateResolution();});
|
||||
|
||||
$(document).on("click", '.collapse-neighbors', function(event)
|
||||
{
|
||||
var caller = $(this);
|
||||
@ -144,11 +156,9 @@ $(document).on("click", '.collapse-neighbors', function(event)
|
||||
var list = caller.find('.neighbors-interface-list');
|
||||
var continued = caller.find('.neighbors-list-continued');
|
||||
|
||||
if(button.hasClass("glyphicon-plus"))
|
||||
{
|
||||
if(button.hasClass("glyphicon-plus")) {
|
||||
button.addClass('glyphicon-minus').removeClass('glyphicon-plus');
|
||||
}else
|
||||
{
|
||||
}else {
|
||||
button.addClass('glyphicon-plus').removeClass('glyphicon-minus');
|
||||
}
|
||||
|
||||
@ -156,12 +166,4 @@ $(document).on("click", '.collapse-neighbors', function(event)
|
||||
continued.toggle();
|
||||
});
|
||||
|
||||
function updateResolution()
|
||||
{
|
||||
$.post('ajax_setresolution.php', { width: $(window).width() , height:$(window).height() }, function(json) {
|
||||
},'json');
|
||||
}
|
||||
|
||||
$(window).on('resize', function(){ updateResolution();});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user