Permalink
Browse files

Fix RTM demo to show invalid icon when going from valid back to invalid

  • Loading branch information...
1 parent 61e7816 commit 7061614b3c4d8f24868d75f6f8604022891e9ff8 @jzaefferer jzaefferer committed Oct 14, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 demo/milk/index.html
View
@@ -85,15 +85,18 @@
success: function(label) {
// set   as text for IE
label.html(" ").addClass("checked");
+ },
+ highlight: function(element, errorClass) {
+ $(element).parent().next().find("." + errorClass).removeClass("checked");
}
});
-
+
// propose username by combining first- and lastname
$("#username").focus(function() {
var firstname = $("#firstname").val();
var lastname = $("#lastname").val();
if(firstname && lastname && !this.value) {
- this.value = firstname + "." + lastname;
+ this.value = (firstname + "." + lastname).toLowerCase();
}
});
@@ -220,7 +223,7 @@ <h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-vali
$.get("users.phps", function(response) {
serverscript = $("<pre>").hide().html( response ).appendTo("body");
})
-
+
});
</script>

0 comments on commit 7061614

Please sign in to comment.