Skip to content
Snippets Groups Projects
Commit 773d23bb authored by Robin Appelman's avatar Robin Appelman
Browse files

open the correct subpage when the media player loads

parent 93dd1c57
Branches
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@ $(document).ready(function(){
PlayList.render();
Collection.hide();
});
var tab=window.location.href.slice(window.location.href.indexOf('#') + 1);
if(tab=='collection'){
$('#plugins a[href="#collection"]').trigger('click');
}
});
......
......@@ -26,8 +26,7 @@ PlayList.render=function(){
tr.data('index',i);
tr.click(function(){
PlayList.play($(this).data('index'));
PlayList.parent.children('tr').removeClass('current');
$(this).addClass('current');
PlayList.render();
});
tr.hover(function(){
var button=$('<img class="remove" title="Remove"/>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment