Make resize delay configurable and default 1000

This commit is contained in:
Deon George 2020-03-12 09:13:55 +11:00
parent 6bc2787602
commit b3924ea239
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
$.AdminLTESidebarTweak = {};
$.AdminLTESidebarTweak.Open = true;
$.AdminLTESidebarTweak.ResizeDelay = 1000;
$.AdminLTESidebarTweak.options = {
EnableRemember: true,
@ -42,7 +43,7 @@
$("body")
.addClass(state ? 'sidebar-open' : 'sidebar-collapse');
$(this).delay(500).queue(function() {
$(this).delay($.AdminLTESidebarTweak.ResizeDelay).queue(function() {
window.dispatchEvent(new Event('resize'));
$(this).dequeue();
});