Skip to content

Firefly III: a personal finances manager

all code in firefly js

tasnim0tantawi7b0e40543bb5
diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.js
index b1d58519af..166bfe3f03 100644
--- a/public/v1/js/ff/firefly.js
+++ b/public/v1/js/ff/firefly.js
@@ -70,6 +70,15 @@ $(function () {
}, 0);
});
+ (function () {
+ try {
+ if (localStorage.getItem('ff3_sidebar_collapsed') === '1') {
+ document.body.classList.add('sidebar-collapse');
+ }
+ } catch (_) {}
+ })();
+
+
// on submit of form, disable any button in form:
$('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
$('button[type="submit"]').prop('disabled', true);