This commit is contained in:
Federico Zivolo 2014-09-08 09:39:40 +02:00
parent 8c78d8a57b
commit 4fd7a94a81

View File

@ -24,12 +24,15 @@ $(function (){
}
});
$(document).on("keyup", ".form-control", function() {
$(document).on("keyup change", ".form-control", function() {
if ($(this).val() !== "") {
$(this).removeClass("empty");
} else {
$(this).addClass("empty");
}
});
$(document).on("keydown", ".form-control", function() {
$(this).removeClass("empty");
});
});