mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 22:03:01 +00:00 
			
		
		
		
	Fixed error with "... added" notifications
This commit is contained in:
		| @@ -395,7 +395,7 @@ function webSocketConnect() { | |||||||
|                                 socket.send(onClickAction + "," + decodeURI($(this).parents("tr").attr("uri"))); |                                 socket.send(onClickAction + "," + decodeURI($(this).parents("tr").attr("uri"))); | ||||||
|                             $('.top-right').notify({ |                             $('.top-right').notify({ | ||||||
|                                 message:{ |                                 message:{ | ||||||
|                                     text: $('td:nth-child(2)', $(this).parents("tr")).text() + " added" |                                     text: "\"" + $('td:nth-last-child(3)', $(this).parents("tr")).text() + "\" added" | ||||||
|                                 } }).show(); |                                 } }).show(); | ||||||
|                             }).fadeTo('fast',1); |                             }).fadeTo('fast',1); | ||||||
|                     } |                     } | ||||||
| @@ -429,7 +429,7 @@ function webSocketConnect() { | |||||||
|                                     socket.send("MPD_API_ADD_TRACK," + decodeURI($(this).attr("uri"))); |                                     socket.send("MPD_API_ADD_TRACK," + decodeURI($(this).attr("uri"))); | ||||||
|                                     $('.top-right').notify({ |                                     $('.top-right').notify({ | ||||||
|                                         message:{ |                                         message:{ | ||||||
|                                             text: $('td:nth-child(2)', this).text() + " added" |                                             text: "\"" + $('td:nth-last-child(3)', this).text() + "\" added" | ||||||
|                                         } |                                         } | ||||||
|                                     }).show(); |                                     }).show(); | ||||||
|                                     break; |                                     break; | ||||||
| @@ -437,7 +437,7 @@ function webSocketConnect() { | |||||||
|                                     socket.send("MPD_API_ADD_PLAYLIST," + decodeURI($(this).attr("uri"))); |                                     socket.send("MPD_API_ADD_PLAYLIST," + decodeURI($(this).attr("uri"))); | ||||||
|                                     $('.top-right').notify({ |                                     $('.top-right').notify({ | ||||||
|                                         message:{ |                                         message:{ | ||||||
|                                             text: "Playlist " + $('td:nth-child(2)', this).text() + " added" |                                             text: "\"" + $('td:nth-last-child(3)', this).text() + "\" added" | ||||||
|                                         } |                                         } | ||||||
|                                     }).show(); |                                     }).show(); | ||||||
|                                     break; |                                     break; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 eb041592
					eb041592