mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2025-10-29 17:50:37 +00:00
Initial commit. State 04.2021.
This commit is contained in:
19
wp-includes/js/wpdialog.js
Normal file
19
wp-includes/js/wpdialog.js
Normal file
@@ -0,0 +1,19 @@
|
||||
( 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);
|
||||
Reference in New Issue
Block a user