X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ftiny_mce%2Futils%2Fvalidate.js;h=27cbfab811e317865dfbda1c690b09c88d3b7b9b;hb=eb5fb3f6c3b3e1d4d3d7ebbb92b8c60d70d13254;hp=b8931f4373dfb4359c58173328871155403098e0;hpb=932f4feaa7b2afe4553e5e669e2312614d3f6140;p=citadel.git diff --git a/webcit/tiny_mce/utils/validate.js b/webcit/tiny_mce/utils/validate.js old mode 100755 new mode 100644 index b8931f437..27cbfab81 --- a/webcit/tiny_mce/utils/validate.js +++ b/webcit/tiny_mce/utils/validate.js @@ -1,10 +1,11 @@ /** - * $Id: validate.js 162 2007-01-03 16:16:52Z spocke $ + * validate.js * - * Various form validation methods. + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. * - * @author Moxiecode - * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved. + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing */ /** @@ -31,7 +32,7 @@ var Validator = { }, isSize : function(s) { - return this.test(s, '^[0-9]+(px|%)?$'); + return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$'); }, isId : function(s) { @@ -95,8 +96,10 @@ var AutoValidator = { var i, nl, s = this.settings, c = 0; nl = this.tags(f, 'label'); - for (i=0; i