init
This commit is contained in:
commit
ff6f6c80cd
1709 changed files with 840760 additions and 0 deletions
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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue