mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Fix initial sidebar display
This commit is contained in:
parent
80620b7881
commit
9b379a7976
@ -310,14 +310,14 @@
|
||||
});
|
||||
|
||||
if (isStorageSupported()) {
|
||||
var storage = localStorage.getItem('show_' + side + '_sidebar');
|
||||
var storage = localStorage.getItem('show_' + side + '_sidebar') || '0';
|
||||
var toggled = $("#wrapper").hasClass("toggled-" + side) ? '1' : '0';
|
||||
|
||||
if (storage != toggled) {
|
||||
setTimeout(function() {
|
||||
$("#wrapper").toggleClass("toggled-" + side);
|
||||
$.post('{{ url('save_sidebar_state') }}?show_' + side + '=' + storage);
|
||||
}, 100);
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user