DONT always scan the collection, I would like to keep some cpu cycles to actually use my pc

This commit is contained in:
Robin Appelman 2011-08-13 17:41:34 +02:00
parent 44b59e3823
commit ee8e6d5442
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ Collection={
} }
if(collection.length==0){ if(collection.length==0){
$('#scan input.start').val(t('media','Scan Collection')); $('#scan input.start').val(t('media','Scan Collection'));
$('#plugins a[href="#collection"]').trigger('click'); $('#scan input.start').click();
} }
} }
@ -244,12 +244,12 @@ $(document).ready(function(){
Collection.parent=$('#collection'); Collection.parent=$('#collection');
Collection.load(); Collection.load();
Collection.parent.hide(); Collection.parent.hide();
//$('#scan input.start').click(function(){ $('#scan input.start').click(function(){
$('#scan input.start').hide(); $('#scan input.start').hide();
$('#scan input.stop').show(); $('#scan input.stop').show();
$('#scan input.stop').click(function(){ $('#scan input.stop').click(function(){
Scanner.toggle(); Scanner.toggle();
}); });
Scanner.scanCollection(); Scanner.scanCollection();
//}); });
}); });