Move all files to taking-flight-with-tailwind-css/demo/wordcamp-bristol-2019/
This commit is contained in:
parent
80c38777dc
commit
7cc2622551
1874 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* @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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue