fixed password remove
This commit is contained in:
parent
b75dadf7a9
commit
6bf4379eb8
2 changed files with 11 additions and 1 deletions
|
@ -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">×</button>
|
||||
MPD Password is set
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue