Changeset 22514
- Timestamp:
- 11/09/2012 10:36:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/wpdialog.js
r22513 r22514 1 1 (function($){ 2 2 $.ui.dialog.prototype.options.closeOnEscape = false; 3 $.widget("wp.wpdialog", $.ui.dialog, { 4 options: { 5 closeOnEscape: false 6 }, 3 $.widget('wp.wpdialog', $.ui.dialog, { 4 // Work around a bug in jQuery UI 1.9.1. 5 // http://bugs.jqueryui.com/ticket/8805 7 6 widgetEventPrefix: 'wpdialog', 8 7 … … 10 9 var ed; 11 10 12 // Initialize tinyMCEPopup if it exists and isthe editor is active.11 // Initialize tinyMCEPopup if it exists and the editor is active. 13 12 if ( tinyMCEPopup && typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) { 14 13 tinyMCEPopup.init(); … … 16 15 17 16 // Add beforeOpen event. 18 if ( this. _isOpen|| false === this._trigger('beforeOpen') ) {17 if ( this.isOpen() || false === this._trigger('beforeOpen') ) { 19 18 return; 20 19 } 21 20 22 21 // Open the dialog. 23 $.ui.dialog.prototype.open.apply( this, arguments);22 this._super(); 24 23 // WebKit leaves focus in the TinyMCE editor unless we shift focus. 25 24 this.element.focus();
Note: See TracChangeset
for help on using the changeset viewer.