mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Disable Gridster after window resize when Gridster is/should be disabled (#14222)
* Disable Gridster after window resize when Gridster is/should be disabled * Identation fix on next line after code addition
This commit is contained in:
@@ -751,6 +751,15 @@
|
||||
});
|
||||
}
|
||||
|
||||
addEvent(window, "resize", function(event) {
|
||||
setTimeout(function(){
|
||||
if(!gridster_state) {
|
||||
gridster.disable();
|
||||
gridster.disable_resize();
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
|
||||
@if($browser_push)
|
||||
if (localStorage.getItem('notifications') !== 'disabled') {
|
||||
Notification.requestPermission().then(function (permission) {
|
||||
|
Reference in New Issue
Block a user