403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/admin/javascript/engine/compatibility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/admin/javascript/engine/compatibility//close_alert_box.js
/* --------------------------------------------------------------
 close_alert_box.js 2016-08-25 
 Gambio GmbH
 http://www.gambio.de
 Copyright (c) 2016 Gambio GmbH
 Released under the GNU General Public License (Version 2)
 [http://www.gnu.org/licenses/gpl-2.0.html]
 --------------------------------------------------------------
 */

/**
 * ## Close Alert Box
 *
 * This module will hide an alert box by clicking a button with the class "close".
 *
 * @module Compatibility/close_alert_box
 */
gx.compatibility.module(
    'close_alert_box',

    ['user_configuration_service'],

    /**  @lends module:Compatibility/close_alert_box */

    function (data) {

        'use strict';

        // ------------------------------------------------------------------------
        // VARIABLES DEFINITION
        // ------------------------------------------------------------------------

        var
            /**
             * Module Selector
             *
             * @var {object}
             */
            $this = $(this),

            /**
             * Default Options
             *
             * @type {object}
             */
            defaults = {},

            /**
             * UserConfigurationService Alias
             *
             * @type {object}
             */
            userConfigurationService = jse.libs.user_configuration_service,

            /**
             * Final Options
             *
             * @var {object}
             */
            options = $.extend(true, {}, defaults, data),

            /**
             * Module Object
             *
             * @type {object}
             */
            module = {};

        // ------------------------------------------------------------------------
        // INITIALIZATION
        // ------------------------------------------------------------------------

        module.init = function (done) {
            var $createNewWrapper = $('.create-new-wrapper');

            $this.find('button.close').on('click', function () {

                $(this).parent('.alert').hide();

                if (options.user_config_key !== undefined && options.user_config_value !== undefined) {
                    userConfigurationService.set({
                        data: {
                            userId: options.user_id,
                            configurationKey: options.user_config_key,
                            configurationValue: options.user_config_value
                        }
                    });
                }

                if ($createNewWrapper.length > 0 && ($('.message_stack_container .alert').length - 1) === 0) {
                    $createNewWrapper.removeClass('message-stack-active');
                }
            });

            done();
        };

        return module;
    });

Youez - 2016 - github.com/yon3zu
LinuXploit