Browse Source

fix settings modal hiding on keypress

Andrew Karpow 10 years ago
parent
commit
5920d9f1bf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      htdocs/js/mpd.js

+ 2 - 1
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);