From: Andrew Karpow Date: Tue, 4 Feb 2014 17:58:05 +0000 (+0100) Subject: fix settings modal hiding on keypress X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=f0c1317d57a3cbe79032f8fc1ea312a35d65159a;p=ympd.git fix settings modal hiding on keypress --- 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);