Ticket #5882: 5882.patch

File 5882.patch, 968 bytes (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/dialog/plugin.js

     
    938938                 */
    939939                selectPage : function( id )
    940940                {
     941                        if ( this._.currentTabId === id )
     942                                return;
     943
     944                        // Returning true means that the event has been canceled
     945                        if ( this.fire( 'selectPage', { page : id, currentPage : this._.currentTabId } ) === true )
     946                                return;
     947
    941948                        // Hide the non-selected tabs and pages.
    942949                        for ( var i in this._.tabs )
    943950                        {
     
    29482955 * @param {CKEDITOR.editor} editor The editor instance that will use the
    29492956 *              dialog.
    29502957 */
     2958
     2959/**
     2960 * Fired when a tab is going to be selected in a dialog
     2961 * @name dialog#selectPage
     2962 * @event
     2963 * @param String page The id of the page that it's gonna be selected.
     2964 * @param String currentPage The id of the current page.
     2965 */
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy