CoreFiles by mySites.guru
wpdialog.js19 lines, 435 bytes, from wordpress-4.2.21.zip
Raw History Compare with 4.2.20
md5
72e8395fd44d4039009c5396888fa6ba
sha1
6a248d3a7611a16fb4f9753c77605cbf0903e703
sha256
c2a7512c45d5dc7a1c2061ccf211f370beb9b30119ffec11ef00f2591d9dc4f9
( 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);

The same content is in 545 releases, WordPress 3.9-beta1 to 5.0.31. See them all, or every version of this file.