TagSpaces is an offline, open source, document manager with tagging support
Correcting the undefined text in the toolbar by recursive search
Ilian5e3581f56a4a
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.jsindex a38c1f9d7..2da8f9df2 100644--- a/data/ext/perspectiveGrid/perspectiveUI.js+++ b/data/ext/perspectiveGrid/perspectiveUI.js@@ -429,17 +429,6 @@ console.log("Loading UI for perspectiveDefault");// Load new filtered datathis.searchResults = TSCORE.Search.searchData(TSCORE.fileList, TSCORE.Search.nextQuery);- if(this.searchResults.length == 0) {- $("#statusBar").text("No files found");- } 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."- //}));- }-var i=0;_.each(self.calculateGrouping(this.searchResults), function (value) {i++;@@ -593,6 +582,20 @@ console.log("Loading UI for perspectiveDefault");$("#"+this.extensionID+"TagButton" ).prop('disabled', true);this.refreshThumbnails();++ if(this.searchResults.length != undefined) {+ if(this.searchResults.length == 0) {+ $("#statusBar").text("No files found");+ } 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."+ //}));+ }+ }+TSCORE.hideLoadingAnimation();};diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.jsindex d6606d23f..2565efa81 100644--- a/data/ext/perspectiveList/perspectiveUI.js+++ b/data/ext/perspectiveList/perspectiveUI.js@@ -214,8 +214,6 @@ console.log("Loading UI for perspectiveList");// Load new filtered datathis.searchResults = TSCORE.Search.searchData(TSCORE.fileList, TSCORE.Search.nextQuery);-- $("#statusBar").text(this.searchResults.length+" files found");this.fileTable.fnAddData( this.searchResults );@@ -304,6 +302,11 @@ console.log("Loading UI for perspectiveList");$("#"+this.extensionID+"IncreaseThumbsButton" ).prop('disabled', true);$("#"+this.extensionID+"TagButton" ).prop('disabled', true);+ //Update statusbar+ if(this.searchResults.length != undefined) {+ $("#statusBar").text(this.searchResults.length+" files found");+ }+this.refreshThumbnails();//TSCORE.hideLoadingAnimation();};