Sha256: c2a7512c45d5dc7a1c2061ccf211f370beb9b30119ffec11ef00f2591d9dc4f9
Contents?: true
Size: 435 Bytes
Versions: 6
Compression:
Stored size: 435 Bytes
Contents
( 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);
Version data entries
6 entries across 6 versions & 2 rubygems