Imcms.define("imcms-admin-panel-state", ["jquery"], function ($) {

    var PanelState = function () {
        this.isSpecialPanelHidingPrevented = false;
    };

    PanelState.prototype = {
        refreshSpecialPanelPosition: function () {
            var $imcmsAdminSpecial = $('#imcmsAdminSpecial');

            if ($imcmsAdminSpecial.length) {
                var adminPanelHeight = this.isSpecialPanelHidingPrevented ? 0 : $('#imcms-admin-panel').outerHeight();
                $imcmsAdminSpecial.css("padding-top", adminPanelHeight);
            }
        },
        disableSpecialPanelHiding: function () {
            this.isSpecialPanelHidingPrevented = true;
        },
        enableSpecialPanelHiding: function () {
            this.isSpecialPanelHidingPrevented = false;
        }
    };

    return new PanelState();
});

Imcms.define("imcms-admin-panel-state", ["jquery"], function ($) {

    var PanelState = function () {
        this.isSpecialPanelHidingPrevented = false;
        this.isPanelAppearanceDisabled = false;
    };

    PanelState.prototype = {
        refreshSpecialPanelPosition: function () {
            var $imcmsAdminSpecial = $('#imcmsAdminSpecial');

            if ($imcmsAdminSpecial.length) {
                var adminPanelHeight = this.isSpecialPanelHidingPrevented ? 0 : $('#imcms-admin-panel').outerHeight();
                $imcmsAdminSpecial.css("padding-top", adminPanelHeight);
            }
        },
        disableSpecialPanelHiding: function () {
            this.isSpecialPanelHidingPrevented = true;
        },
        enableSpecialPanelHiding: function () {
            this.isSpecialPanelHidingPrevented = false;
        },
        enablePanelAppearance: function () {
            this.isPanelAppearanceDisabled = false;
        },
        disablePanelAppearance: function () {
            this.isPanelAppearanceDisabled = true;
        }
    };

    return new PanelState();
});

Add a "pin" icon to imCMS's panel: - Extended panel state.
IMCMS-290: Add a "pin" icon to imCMS's panel:
- Extended panel state.
