TagSpaces is an offline, open source, document manager with tagging support
Resets the search filter by view change
uggrockb34541500e0b
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.jsindex e1cac90ca..f880ae548 100644--- a/data/js/tags.ui.js+++ b/data/js/tags.ui.js@@ -416,7 +416,7 @@ TagsUI.openTagMenu = function(tagButton, tag, fileName) {}// Helper function user by basic and search views-TagsUI.generateTagButtons = function(commaSeparatedTags, fileExtension, fileName) {+TagsUI.generateTagButtons = function(commaSeparatedTags, fileExtension, fileName, filePath) {console.debug("Creating tags...");var tagString = ""+commaSeparatedTags;var wrapper = $('<span>');@@ -425,6 +425,7 @@ TagsUI.generateTagButtons = function(commaSeparatedTags, fileExtension, fileNametitle: "Opens context menu for "+fileExtension,tag: fileExtension,filename: fileName,+ filepath: filePath,class: "extTagButton",text: fileExtension}));@@ -445,18 +446,23 @@ TagsUI.generateTagButtons = function(commaSeparatedTags, fileExtension, fileName}// Helper function user by basic and search views-TagsUI.buttonizeTitle = function(title, fileName) {+TagsUI.buttonizeTitle = function(title, fileName, filePath) {+ if(title.length < 1) {+ title = "n/a";+ }return $('<span>').append($('<button>', {title: fileName,+ filepath: filePath,class: 'fileTitleButton',- text: title+' '+ text: title})).html();}// Helper function user by basic and search views-TagsUI.buttonizeFileName = function(fileName) {+TagsUI.buttonizeFileName = function(fileName, filePath) {return $('<span>').append($('<button>', {- title: fileName,+ title: filePath,+ filepath: filePath,class: 'fileButton',text: fileName})).html();diff --git a/data/js/tagspace.api.js b/data/js/tagspace.api.jsindex 8d822ed2c..ac37ab118 100644--- a/data/js/tagspace.api.js+++ b/data/js/tagspace.api.js@@ -19,6 +19,11 @@ TSAPI.createSearchIndex = function(currentLocation) {}+TSAPI.formatFileSize = function(fileSize) {+ // TODO implement format file size+ return fileSize;+}+TSAPI.formatDateTime = function(date, includeTime) {if( (date == undefined) || (date == "") ) return "";var d = new Date(date);diff --git a/data/js/view.manager.js b/data/js/view.manager.jsindex 9fde5cddc..780d66da1 100644--- a/data/js/view.manager.js+++ b/data/js/view.manager.js@@ -156,7 +156,10 @@ exports.changeView = function changeView(viewType) {// Clear the list with the selected filesUIAPI.selectedFiles = [];UIAPI.currentFilename = "";-++ // Reset the filter by a view change+ exports.setFileFilter("");+// UIAPI.hideLoadingAnimation();}