Skip to content
Snippets Groups Projects
Commit c1449766 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

start scanning music automatically when in Music

parent ccf410c7
Branches
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment