mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update the session variables for browser width and height when browser is resized
This commit is contained in:
@@ -123,6 +123,7 @@ $(document).ready(function() {
|
||||
});
|
||||
});
|
||||
|
||||
updateResolution();
|
||||
});
|
||||
|
||||
function submitCustomRange(frmdata) {
|
||||
@@ -155,7 +156,12 @@ $(document).on("click", '.collapse-neighbors', function(event)
|
||||
continued.toggle();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$.post('ajax_setresolution.php', { width: $(window).width() , height:$(window).height() }, function(json) {
|
||||
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