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/app/code/Zendesk/Zendesk/view/adminhtml/web/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/code/Zendesk/Zendesk/view/adminhtml/web/js/setup-guide.js
define([
    'jquery'
], function ($) {
    'use strict';

    $.widget('zendesk.zendeskSetupGuide', {
        options: {
            url: '',
            elementId: '',
            successText: '',
            failedText: '',
            fieldMapping: ''
        },

        /**
         * Bind handlers to events
         */
        _create: function () {
            this._on({
                'click': $.proxy(this._triggerSetup, this)
            });
        },

        /**
         * Trigger Zendesk account provisioning workflow
         *
         * @private
         */
        _triggerSetup: function () {
            var form = new Element('form', {method: 'post', action: this.options.provisionUrl});


            console.log(this.options);
            console.log(form);

            for (var paramName in this.options.postData) {
                if (!this.options.postData.hasOwnProperty(paramName)) continue;

                form.appendChild(new Element('input', {type: 'hidden', name: paramName, value: this.options.postData[paramName]}));
            }

            document.body.appendChild(form);
            form.submit();
        }
    });

    return $.zendesk.zendeskSetupGuide;
});

Spamworldpro Mini