Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/app
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2018-11-04 20:52:03 +0300
committerfnuesse <felix.nuesse@t-online.de>2018-11-21 19:34:30 +0300
commit984b829f784918240a5b143ea221b63847afb7cf (patch)
tree031a056700cfa7e60fd8eafeb1f2c8382357b5a8 /js/app
parentce014390e882870a3142b398c6642cf861d6084b (diff)
readded tagsearch to navbar
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'js/app')
-rw-r--r--js/app/controllers/menu.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/js/app/controllers/menu.js b/js/app/controllers/menu.js
index f2c94bf8..5b692e2e 100644
--- a/js/app/controllers/menu.js
+++ b/js/app/controllers/menu.js
@@ -98,7 +98,17 @@
$scope.selectedTags.splice(where, 1);
};
- $scope.tagClicked = function (tag) {
+ $scope.clearForm = function () {
+ document.getElementById('tagsearch').value="";
+ };
+
+ $scope.tagClickedString = function (tagtext) {
+ var tag=[];
+ tag.text=tagtext;
+ $scope.tagClicked(tag);
+ };
+
+ $scope.tagClicked = function (tag) {
//check if tag already selected
if(!$scope.tagSelected(tag)){
$scope.selectedTags.push(tag);