From f0c1317d57a3cbe79032f8fc1ea312a35d65159a Mon Sep 17 00:00:00 2001 From: Andrew Karpow Date: Tue, 4 Feb 2014 18:58:05 +0100 Subject: [PATCH] fix settings modal hiding on keypress --- htdocs/js/mpd.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1