Fix undefined error when new collection title is empty
This commit is contained in:
parent
78e1e8593a
commit
c9ccd758bc
1 changed files with 3 additions and 5 deletions
|
@ -956,14 +956,12 @@ var ZoteroPane = new function()
|
||||||
Zotero.getString('pane.collections.newCollection'),
|
Zotero.getString('pane.collections.newCollection'),
|
||||||
Zotero.getString('pane.collections.name'), newName, "", {});
|
Zotero.getString('pane.collections.name'), newName, "", {});
|
||||||
|
|
||||||
if (!result)
|
if (!result) {
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!newName.value)
|
if (!newName.value) {
|
||||||
{
|
newName.value = name;
|
||||||
newName.value = untitled;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var collection = new Zotero.Collection;
|
var collection = new Zotero.Collection;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue