Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/amasty/base/view/adminhtml/web/js/mixins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/amasty/base/view/adminhtml/web/js/mixins/theme.js
/**
 *  Amasty Theme Mixin
 */

define([
    'jquery',
    'uiRegistry'
], function ($, registry) {
    'use strict';

    return function (widget) {
        $.widget('mage.globalNavigation', widget, {
            options: {
                components: {
                    ambase_submenu: 'index = ambase_submenu'
                }
            },

            /**
             * Extended creating widget functionality via adding Amasty submenu
             * uiComponent from Amasty module
             *
             * @private
             * @return {void}
             */
            _create: function () {
                registry.get(this.options.components.ambase_submenu, function (ambase_submenu) {
                    this.options.components.ambase_submenu = ambase_submenu;
                }.bind(this));

                this._super();
            },

            /**
             * Extended close functionality with clearing second level of submenu
             * from Amasty module
             *
             * @param {jQuery.Event} event
             * @private
             * @return {void}
             */
            _close: function (event) {
                if (this.options.components.ambase_submenu.resetActiveItem) {
                    this.options.components.ambase_submenu.resetActiveItem();
                }
                this._super(event);
            },

            /**
             * Extended open functionality with clearing second level of submenu
             * from Amasty module
             *
             * @param {jQuery.Event} event
             * @private
             * @return {void}
             */
            _open: function (event) {
                if (this.options.components.ambase_submenu.resetActiveItem) {
                    this.options.components.ambase_submenu.resetActiveItem();
                }
                this._super(event);
            }
        });

        return $.mage.globalNavigation;
    }
});

Spamworldpro Mini