Ticket #7915: 7915_6.patch

File 7915_6.patch, 865 bytes (added by Garry Yao, 12 years ago)
  • _source/plugins/dialog/plugin.js

     
    862862                        for ( var i in this._.contents )
    863863                        {
    864864                                for ( var j in this._.contents[i] )
    865                                         fn( this._.contents[i][j] );
     865                                        fn.call( this, this._.contents[i][j] );
    866866                        }
    867867                        return this;
    868868                },
     
    913913                        var args = arguments;
    914914                        this.foreach( function( widget )
    915915                                {
     916                                        // Make sure IE triggers "change" event on last focused input before closing the dialog. (#7915)
     917                                        if ( CKEDITOR.env.ie && this._.currentFocusIndex == widget.focusIndex )
     918                                                widget.fire( 'change', { value : widget.getValue() } );
     919
    916920                                        if ( widget.commit )
    917921                                                widget.commit.apply( widget, args );
    918922                                });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy