mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-30 00:19:54 +00:00
fix settings modal hiding on keypress
This commit is contained in:
parent
bde1d02055
commit
f0c1317d57
@ -460,10 +460,11 @@ function getHost() {
|
||||
socket.send('MPD_API_GET_MPDHOST');
|
||||
|
||||
function onEnter(event) {
|
||||
if ( event.which == 13 )
|
||||
if ( event.which == 13 ) {
|
||||
setHost();
|
||||
$('#settings').modal('hide');
|
||||
}
|
||||
}
|
||||
|
||||
$('#mpdhost').keypress(onEnter);
|
||||
$('#mpdport').keypress(onEnter);
|
||||
|
Loading…
Reference in New Issue
Block a user