aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-14 10:52:45 +0100
committerJoas Schilling <coding@schilljs.com>2016-11-14 10:52:45 +0100
commita06398f804fa95ec8b6d9249a3c3c571fe4cb4b8 (patch)
tree6b1e9f74b914c76ea6a38c8fbe732ec7fb8cf83f
parent4c6e9dccfe354ee435b615e1eda9e980b7398f34 (diff)
downloadnextcloud-server-a06398f804fa95ec8b6d9249a3c3c571fe4cb4b8.tar.gz
nextcloud-server-a06398f804fa95ec8b6d9249a3c3c571fe4cb4b8.zip
Focus the input after clicking the "Tags" label
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--apps/systemtags/js/systemtagsinfoview.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/systemtags/js/systemtagsinfoview.js b/apps/systemtags/js/systemtagsinfoview.js
index ce41bc504e2..f98c4b046e4 100644
--- a/apps/systemtags/js/systemtagsinfoview.js
+++ b/apps/systemtags/js/systemtagsinfoview.js
@@ -151,9 +151,10 @@
$('#app-sidebar').find('.mainFileInfoView .file-details').append(this._toggleHandle);
this._toggleHandle.off('click');
this._toggleHandle.on('click', function () {
- console.log('toggle');
- console.log(self.$el);
self.$el.toggleClass('hidden');
+ if (!self.$el.hasClass('hidden')) {
+ self.$el.find('.systemTagsInputField').select2('open');
+ }
});
},