diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 60114da..13b59b8 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -460,9 +460,10 @@ 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);