Browse Source

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

Focus the input after clicking the "Tags" label
pull/2417/head
Roeland Jago Douma 9 years ago
committed by GitHub
parent
commit
869ae38bea
  1. 5
      apps/systemtags/js/systemtagsinfoview.js

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

Loading…
Cancel
Save