]> git.sesse.net Git - vlc/commitdiff
web intf: make playlist interactive
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 21 Sep 2011 10:30:45 +0000 (12:30 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 21 Sep 2011 10:40:30 +0000 (12:40 +0200)
share/lua/http/js/controlers.js

index ba2315bc667dafcdd752e6c37a2623a543534ddb..84ad35a285b735f31c0d4d4a272727711c54caae 100644 (file)
@@ -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();