Make resize delay configurable and default 1000
This commit is contained in:
parent
6bc2787602
commit
b3924ea239
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
$.AdminLTESidebarTweak = {};
|
$.AdminLTESidebarTweak = {};
|
||||||
$.AdminLTESidebarTweak.Open = true;
|
$.AdminLTESidebarTweak.Open = true;
|
||||||
|
$.AdminLTESidebarTweak.ResizeDelay = 1000;
|
||||||
|
|
||||||
$.AdminLTESidebarTweak.options = {
|
$.AdminLTESidebarTweak.options = {
|
||||||
EnableRemember: true,
|
EnableRemember: true,
|
||||||
@ -42,7 +43,7 @@
|
|||||||
$("body")
|
$("body")
|
||||||
.addClass(state ? 'sidebar-open' : 'sidebar-collapse');
|
.addClass(state ? 'sidebar-open' : 'sidebar-collapse');
|
||||||
|
|
||||||
$(this).delay(500).queue(function() {
|
$(this).delay($.AdminLTESidebarTweak.ResizeDelay).queue(function() {
|
||||||
window.dispatchEvent(new Event('resize'));
|
window.dispatchEvent(new Event('resize'));
|
||||||
$(this).dequeue();
|
$(this).dequeue();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user