wp/wp-includes/js/wpdialog.js
changeset 21 48c4eec2b7e6
parent 9 177826044cd9
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    15 
    15 
    16 			// Open the dialog.
    16 			// Open the dialog.
    17 			this._super();
    17 			this._super();
    18 
    18 
    19 			// WebKit leaves focus in the TinyMCE editor unless we shift focus.
    19 			// WebKit leaves focus in the TinyMCE editor unless we shift focus.
    20 			this.element.focus();
    20 			this.element.trigger('focus');
    21 			this._trigger('refresh');
    21 			this._trigger('refresh');
    22 		}
    22 		}
    23 	});
    23 	});
    24 
    24 
    25 	$.wp.wpdialog.prototype.options.closeOnEscape = false;
    25 	$.wp.wpdialog.prototype.options.closeOnEscape = false;