Merge pull request #2105 from nextcloud/focus-tags-input-on-toggle

Focus the input after clicking the "Tags" label
This commit is contained in:
Roeland Jago Douma 2016-11-30 08:57:00 +01:00 committed by GitHub
commit 869ae38bea
1 changed files with 3 additions and 2 deletions

View File

@ -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');
}
});
},