From: Andrew Karpow Date: Sat, 8 Mar 2014 19:33:22 +0000 (+0100) Subject: fixed password remove X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=6bf4379eb845466fd4efb2dbeff0eb2884a5989e;p=ympd.git fixed password remove --- 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; }