mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	Merge pull request #81 from hsoft/fix-encoded-uri-addtrack
Fix broken add track action
This commit is contained in:
		| @@ -243,7 +243,7 @@ function webSocketConnect() { | |||||||
|                             "<span class=\"glyphicon glyphicon-" + glyphicon + "\"></span></a>") |                             "<span class=\"glyphicon glyphicon-" + glyphicon + "\"></span></a>") | ||||||
|                             .find('a').click(function(e) { |                             .find('a').click(function(e) { | ||||||
|                                 e.stopPropagation(); |                                 e.stopPropagation(); | ||||||
|                                 socket.send(onClickAction + "," + $(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-child(2)', $(this).parents("tr")).text() + " added" | ||||||
| @@ -264,7 +264,7 @@ function webSocketConnect() { | |||||||
|                                     app.setLocation("#/browse/0/"+$(this).attr("uri")); |                                     app.setLocation("#/browse/0/"+$(this).attr("uri")); | ||||||
|                                     break; |                                     break; | ||||||
|                                 case 'song': |                                 case 'song': | ||||||
|                                     socket.send("MPD_API_ADD_TRACK," + $(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-child(2)', this).text() + " added" | ||||||
| @@ -272,7 +272,7 @@ function webSocketConnect() { | |||||||
|                                     }).show(); |                                     }).show(); | ||||||
|                                     break; |                                     break; | ||||||
|                                 case 'plist': |                                 case 'plist': | ||||||
|                                     socket.send("MPD_API_ADD_PLAYLIST," + $(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: "Playlist " + $('td:nth-child(2)', this).text() + " added" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andy
					Andy