These are chat archives for cakemanager/cakeadmin-lightstrap

27th
Jun 2015
Bob Mulder
@bobmulder
Jun 27 2015 09:07
Cool new commit! Looks fancy! What should be the width of the tabs of the settings? Prepared for multiple tabs for muliple plugins... ;)
@leoruhland Look what I've found :)
blob
This code is found in toolbar-app.js:
   saveState: function() {
        if (!window.localStorage) {
            return;
        }
        window.localStorage.setItem('toolbar_state', this._state);
    },

    loadState: function() {
        if (!window.localStorage) {
            return;
        }
        var old = window.localStorage.getItem('toolbar_state');
        if (!old) {
            old = 0;
        }
        if (old == 0) {
            return this.hideContent();
        }
        if (old == 1) {
            return this.toggle();
        }
    },