fixed password remove

This commit is contained in:
Andrew Karpow 2014-03-08 20:33:22 +01:00
parent b75dadf7a9
commit 6bf4379eb8
2 changed files with 11 additions and 1 deletions

View file

@ -197,7 +197,10 @@
data-trigger="manual" />
</div>
<div class="form-group col-md-12">
<div id="mpd_password_set" class="hide alert alert-info">MPD Password is set</div>
<div id="mpd_password_set" class="hide alert alert-info">
<button type="button" class="close" aria-hidden="true">&times;</button>
MPD Password is set
</div>
</div>
</div>

View file

@ -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;
}