diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-11-30 10:57:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 10:57:00 +0300 |
commit | 869ae38beadf481e02d5c6afdce9848d08adf028 (patch) | |
tree | b7d4149c2ee7afa2b341b6b58d21edeba43e2046 /apps/systemtags/js | |
parent | 41dcceeb354c2d375ad279792dfadafe24858d75 (diff) | |
parent | a06398f804fa95ec8b6d9249a3c3c571fe4cb4b8 (diff) |
Merge pull request #2105 from nextcloud/focus-tags-input-on-toggle
Focus the input after clicking the "Tags" label
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'); + } }); }, |