fix settings modal hiding on keypress

This commit is contained in:
Andrew Karpow
2014-03-08 12:30:48 +01:00
parent 6b6622988d
commit 5920d9f1bf
+2 -1
View File
@@ -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);