Skip to content

Commit

Permalink
fix settings modal hiding on keypress
Browse files Browse the repository at this point in the history
  • Loading branch information
notandy committed Feb 4, 2014
1 parent bde1d02 commit f0c1317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/js/mpd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0c1317

Please sign in to comment.