diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-14 12:52:45 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-11-14 12:52:45 +0300 |
commit | a06398f804fa95ec8b6d9249a3c3c571fe4cb4b8 (patch) | |
tree | 6b1e9f74b914c76ea6a38c8fbe732ec7fb8cf83f /apps/systemtags/js | |
parent | 4c6e9dccfe354ee435b615e1eda9e980b7398f34 (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.js | 5 |
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'); + } }); }, |