Ticket #11227: 11227.patch

File 11227.patch, 905 bytes (added by Michael Johnson, 10 years ago)

Patch to plugins.dialog.plugin.js

  • C:/Users/mjohnson/Desktop/plugin.

    old new  
    30163016                                         * combine validate functions together to make more sophisticated
    30173017                                         * validators.
    30183018                                         */
    3019                                         var value = this && this.getValue ? this.getValue() : args[ 0 ];
     3019                                        var value = this && this.getValue ? this.getValue() : arguments[ 0 ];
    30203020
    30213021                                        var msg = undefined,
    30223022                                                relation = CKEDITOR.VALIDATE_AND,
     
    30433043                                        for ( i = 0 ; i < functions.length ; i++ )
    30443044                                        {
    30453045                                                if ( relation == CKEDITOR.VALIDATE_AND )
    3046                                                         passed = passed && functions[i]( value );
     3046                                                        passed = passed && functions[i].call( this, value );
    30473047                                                else
    3048                                                         passed = passed || functions[i]( value );
     3048                                                        passed = passed || functions[i].call( this, value );
    30493049                                        }
    30503050
    30513051                                        return !passed ? msg : true;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy