Author: michiel Date: 2010-06-30 12:42:25 +0200 (Wed, 30 Jun 2010) New Revision: 42754
Modified: mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/Widgets.js Log: using jquery.trim in stead Modified: mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/Widgets.js =================================================================== --- mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/Widgets.js 2010-06-30 10:37:55 UTC (rev 42753) +++ mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/Widgets.js 2010-06-30 10:42:25 UTC (rev 42754) @@ -323,7 +323,7 @@ var labelText = $(this).text(); var labelFor = $(this).attr("for"); var input = $("#" + labelFor); - if (input.val().trim() == "") { + if ($.trim(input.val()) == "") { if (input.attr("type") == 'password') { try { input.attr("type", "text"); @@ -365,7 +365,7 @@ input.blur( function() { // if leaving, the value is empty, and empty is equivalent to 'untouched', put the label back in. - if ($(this).val().trim() == "") { + if ($.trim($(this).val()) == "") { if (emptyisuntouched) { $(this).addClass("untouched"); } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs