From ee8e6d5442f1b3c5de774934ce366442afd706c5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 13 Aug 2011 17:41:34 +0200 Subject: [PATCH] DONT always scan the collection, I would like to keep some cpu cycles to actually use my pc --- apps/media/js/collection.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/media/js/collection.js b/apps/media/js/collection.js index 15c83b8622..98d21b236e 100644 --- a/apps/media/js/collection.js +++ b/apps/media/js/collection.js @@ -34,7 +34,7 @@ Collection={ } if(collection.length==0){ $('#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.load(); Collection.parent.hide(); - //$('#scan input.start').click(function(){ + $('#scan input.start').click(function(){ $('#scan input.start').hide(); $('#scan input.stop').show(); $('#scan input.stop').click(function(){ Scanner.toggle(); }); Scanner.scanCollection(); - //}); + }); });