Skip to content
Snippets Groups Projects
Commit 122c3a3c authored by Robin Appelman's avatar Robin Appelman
Browse files

dont show confusing 'X files scanned' message when we are not scanning files

parent 93b342ee
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ Collection={
Collection.loadedListeners[i]();
}
if(collection.length==0){
$('#scan input.start').val('Scan');
$('#scan input.start').val('Scan Collection');
$('#plugins a[href="#collection"]').trigger('click');
}
......
......@@ -50,6 +50,7 @@ Scanner={
},
start:function(ready){
Scanner.stopScanning=false;
$('#scancount').show();
var scanSong=function(){
Scanner.currentIndex++;
if(!Scanner.stopScanning && Scanner.currentIndex<Scanner.songs.length){
......@@ -62,6 +63,7 @@ Scanner={
}
}
scanSong();
scanSong();
},
toggle:function(){
if(Scanner.stopScanning){
......
<div id='scan'>
<p><span class='songCount'>0</span> Songs scanned</p>
<p id='scancount' style='display:none'><span class='songCount'>0</span> Songs scanned</p>
<div id="scanprogressbar"></div>
<input type='button' class='start' value='Recan'></input>
<input type='button' class='start' value='Recan Collection'></input>
<input type='button' class='stop' style='display:none' value='Pause'></input>
</div>
<ul id='collection'>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment