From 6bf4379eb845466fd4efb2dbeff0eb2884a5989e Mon Sep 17 00:00:00 2001 From: Andrew Karpow Date: Sat, 8 Mar 2014 20:33:22 +0100 Subject: [PATCH] fixed password remove --- htdocs/index.html | 5 ++++- htdocs/js/mpd.js | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/index.html b/htdocs/index.html index 7a90c25..538c8fe 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -197,7 +197,10 @@ data-trigger="manual" />
-
MPD Password is set
+
+ + MPD Password is set +
diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 6344679..9e7d6c7 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -569,6 +569,13 @@ function confirmSettings() { $('#settings').modal('hide'); } +$('#mpd_password_set > button').on('click', function (e) { + socket.send('MPD_API_SET_MPDPASS,'); + $('#mpd_pw').val(""); + $('#mpd_pw_con').val(""); + $('#mpd_password_set').addClass('hide'); +}) + function notificationsSupported() { return "webkitNotifications" in window; }