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.name'), newName, "", {});
|
||||
|
||||
if (!result)
|
||||
{
|
||||
if (!result) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!newName.value)
|
||||
{
|
||||
newName.value = untitled;
|
||||
if (!newName.value) {
|
||||
newName.value = name;
|
||||
}
|
||||
|
||||
var collection = new Zotero.Collection;
|
||||
|
|
Loading…
Reference in a new issue