Author: michiel
Date: 2009-06-05 17:22:15 +0200 (Fri, 05 Jun 2009)
New Revision: 35792
Modified:
mmbase/trunk/core/src/main/webapp/mmbase/validation/Widgets.js
Log:
change stuff also on select
Modified: mmbase/trunk/core/src/main/webapp/mmbase/validation/Widgets.js
===================================================================
--- mmbase/trunk/core/src/main/webapp/mmbase/validation/Widgets.js
2009-06-05 15:16:53 UTC (rev 35791)
+++ mmbase/trunk/core/src/main/webapp/mmbase/validation/Widgets.js
2009-06-05 15:22:15 UTC (rev 35792)
@@ -325,7 +325,7 @@
input.addClass("password");
}
$(this).css("display", "none");
- input.focus(function() {
+ var focus = function() {
// if entered for the first time, remove the label value
if ($(this).hasClass("untouched")) {
if (emptyisuntouched) {
@@ -335,8 +335,10 @@
if ($(this).hasClass("password")) {
$(this).attr("type", "password");
}
- };
- });
+ }
+ };
+ input.focus(focus);
+ input.select(focus);
input.blur(function() {
// if leaving, the value is empty, and empty is equivalent
to 'untouched', put the label back in.
if ($(this).val() == "") {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs