Automatically focus collection name in New Collection window
https://forums.zotero.org/discussion/113706/zotero-beta-7-adding-new-collection
This commit is contained in:
parent
cdacc42fd2
commit
86ee56cfac
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ var Zotero_New_Collection_Dialog = {
|
|||
_handleLoad() {
|
||||
let io = window.arguments[0];
|
||||
|
||||
document.querySelector('#name').value = io.name;
|
||||
let nameElem = document.querySelector('#name');
|
||||
nameElem.value = io.name;
|
||||
nameElem.select();
|
||||
document.addEventListener('dialogaccept', () => this._handleAccept());
|
||||
|
||||
this._libraryID = io.libraryID;
|
||||
|
|
Loading…
Reference in a new issue