Make WordPress Core

Ticket #43947: wpdialog.diff

File wpdialog.diff, 551 bytes (added by manuelaugustin, 7 years ago)
  • src/wp-includes/js/wpdialog.js

    diff --git src/wp-includes/js/wpdialog.js src/wp-includes/js/wpdialog.js
    index 9f5c19b..8903fe2 100644
     
     1/**
     2 * Wrap the jQuery UI Dialog open function to fix the TinyMCE focus.
     3 */
    14( function($) {
    25        $.widget('wp.wpdialog', $.ui.dialog, {
    36                open: function() {
     
    1013                        this._super();
    1114                        // WebKit leaves focus in the TinyMCE editor unless we shift focus.
    1215                        this.element.focus();
     16                        // Add refresh event.
    1317                        this._trigger('refresh');
    1418                }
    1519        });