js fix and rename of css to scss

This commit is contained in:
FezVrasta 2014-10-29 16:20:53 +01:00
parent 1cfbb247e9
commit 3656966750
2 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,6 @@
$this.after("<div class=floating-label>" + placeholder + "</div>"); $this.after("<div class=floating-label>" + placeholder + "</div>");
} }
if ($this.val() === null || $this.val() == "undefined" || $this.val() === "") { if ($this.val() === null || $this.val() == "undefined" || $this.val() === "") {
console.log("enter empty");
$this.addClass("empty"); $this.addClass("empty");
} }
if ($this.parent().next().is("[type=file]")) { if ($this.parent().next().is("[type=file]")) {
@ -82,6 +81,8 @@
var $this = $(this); var $this = $(this);
if($this.val() === "") { if($this.val() === "") {
$this.addClass("empty"); $this.addClass("empty");
} else {
$this.removeClass("empty");
} }
}) })
.on("focus", ".form-control-wrapper.fileinput", function() { .on("focus", ".form-control-wrapper.fileinput", function() {