mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-22 21:07:18 +00:00
fixed password remove
This commit is contained in:
parent
b75dadf7a9
commit
6bf4379eb8
@ -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 New Issue
Block a user