Make resize delay configurable and default 1000
This commit is contained in:
parent
6bc2787602
commit
b3924ea239
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user