Skip to content

TagSpaces is an offline, open source, document manager with tagging support

displaying the number of files found improved

Ilianbda38bc2e561
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.js
index 3261cfa57..607617995 100644
--- a/data/ext/perspectiveGrid/perspectiveUI.js
+++ b/data/ext/perspectiveGrid/perspectiveUI.js
@@ -584,16 +584,11 @@ console.log("Loading UI for perspectiveDefault");
this.refreshThumbnails();
if(this.searchResults.length != undefined) {
- if(this.searchResults.length == 0) {
- $("#statusBar").text("No files found");
+ if(TSCORE.Search.nextQuery.length > 0) {
+ $("#statusBar").text(this.searchResults.length+" files found for '"+TSCORE.Search.nextQuery+"'");
} else {
- //var endTime = new Date().getTime();
- $("#statusBar").text(this.searchResults.length+" files found");
- //this.viewFooter.append($("<div>", {
- // "class": "searchSummary",
- // "text": this.searchResults.length+" files found" //" in "+(endTime-TSCORE.startTime)/1000+" sec."
- //}));
- }
+ $("#statusBar").text(this.searchResults.length+" files found");
+ }
}
TSCORE.hideLoadingAnimation();
diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.js
index 40e006bca..8bcef419c 100644
--- a/data/ext/perspectiveList/perspectiveUI.js
+++ b/data/ext/perspectiveList/perspectiveUI.js
@@ -139,7 +139,7 @@ console.log("Loading UI for perspectiveList");
"bInfo": false,
"bAutoWidth": false,
"oLanguage": {
- "sEmptyTable": "No files found"
+ "sEmptyTable": " " // No files found
},
"aoColumns": [
{ "sTitle": "File Ext.", "sWidth": "125px", "sClass": "fileTitle" },
@@ -308,7 +308,11 @@ console.log("Loading UI for perspectiveList");
//Update statusbar
if(this.searchResults.length != undefined) {
- $("#statusBar").text(this.searchResults.length+" files found");
+ if(TSCORE.Search.nextQuery.length > 0) {
+ $("#statusBar").text(this.searchResults.length+" files found for '"+TSCORE.Search.nextQuery+"'");
+ } else {
+ $("#statusBar").text(this.searchResults.length+" files found");
+ }
}
this.refreshThumbnails();