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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-14 12:52:45 +0300
committerJoas Schilling <coding@schilljs.com>2016-11-14 12:52:45 +0300
commita06398f804fa95ec8b6d9249a3c3c571fe4cb4b8 (patch)
tree6b1e9f74b914c76ea6a38c8fbe732ec7fb8cf83f /apps/systemtags/js
parent4c6e9dccfe354ee435b615e1eda9e980b7398f34 (diff)
Focus the input after clicking the "Tags" label
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/systemtags/js')
-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');
+ }
});
},