1
0
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:
Hillel Coren 2016-11-14 20:21:44 +02:00
parent 80620b7881
commit 9b379a7976

View File

@ -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);
}
}
}