mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	fix settings modal hiding on keypress
This commit is contained in:
		| @@ -460,9 +460,10 @@ function getHost() { | |||||||
|     socket.send('MPD_API_GET_MPDHOST'); |     socket.send('MPD_API_GET_MPDHOST'); | ||||||
|  |  | ||||||
|     function onEnter(event) { |     function onEnter(event) { | ||||||
|       if ( event.which == 13 ) |       if ( event.which == 13 ) { | ||||||
|         setHost(); |         setHost(); | ||||||
|         $('#settings').modal('hide'); |         $('#settings').modal('hide'); | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     $('#mpdhost').keypress(onEnter); |     $('#mpdhost').keypress(onEnter); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andrew Karpow
					Andrew Karpow