403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/craft/wp-content/plugins/duplicator/assets/js/notifications/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/craft/wp-content/plugins/duplicator/assets/js/notifications/notices.js
/**
 * Duplicator Dismissible Notices.
 *
 */

'use strict';

var DupAdminNotices = window.DupAdminNotices || (function (document, window, $) {

    /**
     * Public functions and properties.
     */
    var app = {

        /**
         * Start the engine.
         */
        init: function () {

            $(app.ready);
        },

        /**
         * Document ready.
         */
        ready: function () {

            app.events();
        },

        /**
         * Dismissible notices events.
         */
        events: function () {
            $(document).on(
                'click',
                '.dup-notice .notice-dismiss, .dup-notice .dup-notice-dismiss',
                app.dismissNotice
            );

            $(document).on(
                'click',
                '.dup-notice .dup-multi-notice a[data-step]',
                function (e) {
                    e.preventDefault();
                    var target = $(this).attr('data-step');
                    console.log(target)
                    if (target) {
                        var notice = $(this).closest('.dup-multi-notice');
                        var review_step = notice.find('.dup-multi-notice-step-' + target);
                        if (review_step.length > 0) {
                            notice.find('.dup-multi-notice-step:visible').fadeOut(function () {
                                review_step.fadeIn();
                            });
                        }
                    }
                }
            );
        },

        /**
         * Dismiss notice event handler.
         *
         * @param {object} e Event object.
         * */
        dismissNotice: function (e) {

            $.post(dup_admin_notices.ajax_url, {
                action: 'dup_notice_dismiss',
                nonce: dup_admin_notices.nonce,
                id: ($(this).closest('.dup-notice').attr('id') || '').replace('dup-notice-', ''),
            });

            $(this).closest('.dup-notice').fadeOut();
        }
    };

    return app;

}(document, window, jQuery));

// Initialize.
DupAdminNotices.init();

Youez - 2016 - github.com/yon3zu
LinuXploit