Ticket #7351: 7351.patch
File 7351.patch, 1.4 KB (added by , 13 years ago) |
---|
-
_source/plugins/image/dialogs/image.js
636 636 validate : function() 637 637 { 638 638 var aMatch = this.getValue().match( regexGetSizeOrEmpty ); 639 if ( !aMatch || aMatch[1] == 0 ) 639 if ( !aMatch || parseInt( aMatch[1], 10 ) == 0 ) 640 { 640 641 alert( editor.lang.common.invalidWidth ); 641 return !!aMatch; 642 return false; 643 } 644 return true; 642 645 }, 643 646 setup : setupDimension, 644 647 commit : function( type, element, internalCommit ) … … 685 688 validate : function() 686 689 { 687 690 var aMatch = this.getValue().match( regexGetSizeOrEmpty ); 688 if ( !aMatch || aMatch[1] == 0 ) 691 if ( !aMatch || parseInt( aMatch[1], 10 ) == 0 ) 692 { 689 693 alert( editor.lang.common.invalidHeight ); 690 return !!aMatch; 694 return false; 695 } 696 return true; 691 697 }, 692 698 setup : setupDimension, 693 699 commit : function( type, element, internalCommit )