start scanning music automatically when in Music
This commit is contained in:
parent
ccf410c7b0
commit
c144976676
|
@ -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();
|
||||
});
|
||||
//});
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue