Skip to content

Commit 7061614

Browse files
committed
Fix RTM demo to show invalid icon when going from valid back to invalid
1 parent 61e7816 commit 7061614

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

demo/milk/index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,18 @@
8585
success: function(label) {
8686
// set   as text for IE
8787
label.html(" ").addClass("checked");
88+
},
89+
highlight: function(element, errorClass) {
90+
$(element).parent().next().find("." + errorClass).removeClass("checked");
8891
}
8992
});
90-
93+
9194
// propose username by combining first- and lastname
9295
$("#username").focus(function() {
9396
var firstname = $("#firstname").val();
9497
var lastname = $("#lastname").val();
9598
if(firstname && lastname && !this.value) {
96-
this.value = firstname + "." + lastname;
99+
this.value = (firstname + "." + lastname).toLowerCase();
97100
}
98101
});
99102

@@ -220,7 +223,7 @@ <h1 id="banner"><a href="http://bassistance.de/jquery-plugins/jquery-plugin-vali
220223
$.get("users.phps", function(response) {
221224
serverscript = $("<pre>").hide().html( response ).appendTo("body");
222225
})
223-
226+
224227
});
225228
</script>
226229

0 commit comments

Comments
 (0)