This commit is contained in:
Federico Zivolo 2014-09-08 09:39:40 +02:00
parent 3e17926811
commit dd2b41c11f

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");
});
});