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.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();
|
||||||
});
|
//});
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,10 +24,11 @@
|
||||||
|
|
||||||
<div id="rightcontent">
|
<div id="rightcontent">
|
||||||
<div id="scan">
|
<div id="scan">
|
||||||
<p id="scancount" style="display:none"><span class="songCount">0</span> <?php echo $l->t('Songs scanned')?></p>
|
<p id="scancount" style="display:none"><span class="songCount">0</span> <?php echo $l->t('Songs scanned')?>
|
||||||
<div id="scanprogressbar"></div>
|
|
||||||
<input type="button" class="start" value="<?php echo $l->t('Rescan Collection')?>"></input>
|
<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>
|
</div>
|
||||||
<table id="collection">
|
<table id="collection">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
Loading…
Reference in New Issue