start scanning music automatically when in Music

This commit is contained in:
Jan-Christoph Borchardt 2011-08-13 07:02:51 +02:00
parent ccf410c7b0
commit c144976676
2 changed files with 6 additions and 5 deletions

View File

@ -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();
});
//});
});

View File

@ -24,10 +24,11 @@
<div id="rightcontent">
<div id="scan">
<p id="scancount" style="display:none"><span class="songCount">0</span> <?php echo $l->t('Songs scanned')?></p>
<div id="scanprogressbar"></div>
<p id="scancount" style="display:none"><span class="songCount">0</span> <?php echo $l->t('Songs scanned')?>
<input type="button" class="start" value="<?php echo $l->t('Rescan Collection')?>"></input>
<input type="button" class="stop" style="display:none" value="<?php echo $l->t('Pause')?>"></input>
<input type="button" class="stop" style="display:none" value="<?php echo $l->t('Pause')?>"></input></p>
<div id="scanprogressbar"></div>
</div>
<table id="collection">
<thead>