thomascube
2011-02-02 e4e38e02cfe626ffeda26b1d4a08df7a6cd3997d
program/js/tiny_mce/utils/validate.js
@@ -1,10 +1,11 @@
/**
 * $Id: validate.js 65 2006-08-24 15:54:55Z spocke $
 * validate.js
 *
 * Various form validation methods.
 * Copyright 2009, Moxiecode Systems AB
 * Released under LGPL License.
 *
 * @author Moxiecode
 * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
 * License: http://tinymce.moxiecode.com/license
 * Contributing: http://tinymce.moxiecode.com/contributing
 */
/**
@@ -31,7 +32,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 +111,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)