X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/3e7fab96d7874067884348df10bbdcdefa4a89ad..ae01624bdce6b71c47e08e8a0287de58284a6b73:/wp-includes/js/tinymce/utils/validate.js diff --git a/wp-includes/js/tinymce/utils/validate.js b/wp-includes/js/tinymce/utils/validate.js index 92b44edc..6d79ed72 100644 --- a/wp-includes/js/tinymce/utils/validate.js +++ b/wp-includes/js/tinymce/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) { @@ -110,7 +111,7 @@ var AutoValidator = { }, reset : function(e) { - var t = new Array('label', 'input', 'select', 'textarea'); + var t = ['label', 'input', 'select', 'textarea']; var i, j, nl, s = this.settings; if (e == null)