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/orders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

/**
 * ## Orders Edit Controller
 *
 * This controller contains the mapping logic of orders edit table.
 *
 * @module Compatibility/orders_edit_controller
 */
gx.compatibility.module(
    'orders_edit_controller',

    [],

    /**  @lends module:Compatibility/orders_edit_controller */

    function (data) {

        'use strict';

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

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

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

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

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

        /**
         * Map trash icon to submit button
         */
        $('[data-new-delete-button]').on('click', function () {
            $(this)
                .closest('form[name="product_option_delete"]')
                .submit();
        });

        /**
         * Hide the original submit and save button and set the icon
         * font size to 1 em
         */
        $(document).ready(
            $('[name="save_original"]').hide(),
            $(this).find('.btn-delete').closest('form').find(':submit').hide(),
            $(this).find('.fa-trash-o').css('font-size', '16px')
        );

        /**
         * Map the new save button to the old one on click
         */
        $('[data-new-save-button]').on('click', function (e) {
            e.preventDefault();

            $(this)
                .closest('tr')
                .find('[name="save_original"]')
                .click();
        });

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

        module.init = function (done) {
            done();
        };

        return module;
    });

Youez - 2016 - github.com/yon3zu
LinuXploit