dont show confusing 'X files scanned' message when we are not scanning files
This commit is contained in:
parent
93b342ee39
commit
122c3a3cf8
|
@ -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){
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<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'>
|
||||
|
|
Loading…
Reference in New Issue