Correct code to match code standards

This commit is contained in:
Louis Bailleul
2015-11-20 12:02:51 +00:00
parent bafdeaf9ee
commit 4731e8621b
3 changed files with 18 additions and 23 deletions

View File

@ -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();});