Browse Source

Focus the input after clicking the "Tags" label

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/2105/head
Joas Schilling 9 years ago
parent
commit
a06398f804
No known key found for this signature in database GPG Key ID: E166FD8976B3BAC8
  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