aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-01-16 01:11:30 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-01-16 01:11:30 +0100
commitbb5729a29495c19e6be691784a5091ff7d220ab0 (patch)
tree311676c724d8e483740d6873038fa11990f13121
parentUpgrade to jquery 2.0beta. (diff)
downloadzmusic-ng-bb5729a29495c19e6be691784a5091ff7d220ab0.tar.xz
zmusic-ng-bb5729a29495c19e6be691784a5091ff7d220ab0.zip
Use prop instead of attr, per jQuery 1.9 upgrade guide.
-rw-r--r--frontend/js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index 3d0607a..f015fbe 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -52,14 +52,14 @@ $(function() {
var username = $(this.username).val();
var password = $(this.password).val();
var button = login.find("button").removeClass("btn-primary").addClass("disabled");
- login.find("input").val("").removeClass("incorrect-login").attr("disabled", "disabled");
+ login.find("input").val("").removeClass("incorrect-login").prop("disabled", true);
$.ajax("login", { type: "POST", data: { "username": username, "password": password } }).success(function(response) {
if (response.loggedin) {
button.addClass("btn-success");
login.fadeOut();
startApp();
} else {
- login.find("input").removeAttr("disabled").val("").addClass("incorrect-login").first().focus();
+ login.find("input").prop("disabled", false).val("").addClass("incorrect-login").first().focus();
button.addClass("btn-danger").removeClass("disabled");
}
});