includes/clientside/tinymce/utils/validate.js
changeset 543 dffcbfbc4e59
parent 395 fa4c5ecb7c9a
--- a/includes/clientside/tinymce/utils/validate.js	Mon May 05 20:06:37 2008 -0400
+++ b/includes/clientside/tinymce/utils/validate.js	Mon May 05 20:08:44 2008 -0400
@@ -1,5 +1,5 @@
 /**
- * $Id: validate.js 520 2008-01-07 16:30:32Z spocke $
+ * $Id: validate.js 758 2008-03-30 13:53:29Z spocke $
  *
  * Various form validation methods.
  *
@@ -31,7 +31,7 @@
 	},
 
 	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 +110,7 @@
 	},
 
 	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)