Ticket #7351: 7351.patch

File 7351.patch, 1.4 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/image/dialogs/image.js

     
    636636                                                                                                                        validate : function()
    637637                                                                                                                        {
    638638                                                                                                                                var aMatch  =  this.getValue().match( regexGetSizeOrEmpty );
    639                                                                                                                                 if ( !aMatch || aMatch[1] == 0 )
     639                                                                                                                                if ( !aMatch || parseInt( aMatch[1], 10 ) == 0 )
     640                                                                                                                                {
    640641                                                                                                                                        alert( editor.lang.common.invalidWidth );
    641                                                                                                                                 return !!aMatch;
     642                                                                                                                                        return false;
     643                                                                                                                                }
     644                                                                                                                                return true;
    642645                                                                                                                        },
    643646                                                                                                                        setup : setupDimension,
    644647                                                                                                                        commit : function( type, element, internalCommit )
     
    685688                                                                                                                        validate : function()
    686689                                                                                                                        {
    687690                                                                                                                                var aMatch = this.getValue().match( regexGetSizeOrEmpty );
    688                                                                                                                                 if ( !aMatch || aMatch[1] == 0 )
     691                                                                                                                                if ( !aMatch || parseInt( aMatch[1], 10 ) == 0 )
     692                                                                                                                                {
    689693                                                                                                                                        alert( editor.lang.common.invalidHeight );
    690                                                                                                                                 return !!aMatch;
     694                                                                                                                                        return false;
     695                                                                                                                                }
     696                                                                                                                                return true;
    691697                                                                                                                        },
    692698                                                                                                                        setup : setupDimension,
    693699                                                                                                                        commit : function( type, element, internalCommit )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy