[vlc-commits] web intf: make playlist interactive

Francois Cartegnie git at videolan.org
Wed Sep 21 12:41:12 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Sep 21 12:30:45 2011 +0200| [161f99758e4a51bd1955f2842048da2fc78cc3ff] | committer: Francois Cartegnie

web intf: make playlist interactive

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=161f99758e4a51bd1955f2842048da2fc78cc3ff
---

 share/lua/http/js/controlers.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/share/lua/http/js/controlers.js b/share/lua/http/js/controlers.js
index ba2315b..84ad35a 100644
--- a/share/lua/http/js/controlers.js
+++ b/share/lua/http/js/controlers.js
@@ -443,6 +443,10 @@ $(function(){
 			$(this).addClass('ui-state-highlight');
 			current_id	=	$(this).attr('id').substr(5);
 		});
+	}).delegate("#plid_2 li.jstree-leaf a", "click",function(event, data){
+		event.preventDefault();
+		current_id	=	$(this).parent().attr('id').substr(5);
+		sendCommand('command=pl_play&id=' + current_id);
 	});
 	updateStatus();
 	updateStreams();



More information about the vlc-commits mailing list