fix media sub navigation entries

This commit is contained in:
Robin Appelman 2011-08-02 04:13:19 +02:00
parent b5c213ce6d
commit c814f10d7f
1 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
$(document).ready(function(){
//load the collection
$('#plugins a[href="#collection"]').click(function(){
$('#plugins li.subentry a.active').removeClass('active');
$('#navigation a[href="#collection"]').click(function(){
$('#navigation li.subentry a.active').removeClass('active');
$(this).addClass('active');
PlayList.hide();
Collection.display();
});
$('#plugins a[href="#playlist"]').click(function(){
$('#plugins li.subentry a.active').removeClass('active');
$('#navigation a[href="#playlist"]').click(function(){
$('#navigation li.subentry a.active').removeClass('active');
$(this).addClass('active');
PlayList.render();
Collection.hide();
@ -15,7 +15,7 @@ $(document).ready(function(){
var tab=window.location.href.slice(window.location.href.indexOf('#') + 1);
PlayList.init('mp3',function(){
if(tab=='collection'){
$('#plugins a[href="#collection"]').trigger('click');
$('#navigation a[href="#collection"]').trigger('click');
}
});
OC.search.customResults.Music=function(row,item){