Fix JS strict warnings
This commit is contained in:
parent
cb4b7f0642
commit
2d98bdf4b5
|
@ -71,6 +71,7 @@ var Zotero_File_Interface = new function() {
|
|||
translation.translate();
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -854,12 +854,12 @@ var ZoteroItemPane = new function()
|
|||
* Save a multiple-field selection for the creator autocomplete
|
||||
* (e.g. "Shakespeare, William")
|
||||
*/
|
||||
function handleCreatorAutoCompleteSelect(textbox, creatorField)
|
||||
function handleCreatorAutoCompleteSelect(textbox)
|
||||
{
|
||||
var comment = Zotero.Utilities.AutoComplete.getResultComment(textbox);
|
||||
if (!comment)
|
||||
{
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
var [creatorID, numFields] = comment.split('-');
|
||||
|
|
|
@ -201,7 +201,7 @@ var ZoteroPane = new function()
|
|||
|
||||
if (!result)
|
||||
{
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!newName.value)
|
||||
|
@ -530,6 +530,7 @@ var ZoteroPane = new function()
|
|||
if(collection && collection.isCollection())
|
||||
return collection.ref;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function getSelectedSavedSearch()
|
||||
|
@ -542,6 +543,7 @@ var ZoteroPane = new function()
|
|||
return collection.ref;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function getSelectedItems()
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
<toolbarbutton id="tb-note-add" tooltiptext="&zotero.toolbar.note.standalone;" oncommand="ZoteroPane.newNote(event.shiftKey);"/>
|
||||
<spacer flex="1"/>
|
||||
<label value="&zotero.toolbar.search.label;" control="tb-search"/>
|
||||
<textbox id="tb-search" type="timed" timeout="250" command="cmd_zotero_search" dir="reverse" onkeypress="if(event.keyCode == event.DOM_VK_ESCAPE) { this.value = ''; this.doCommand('cmd_zotero_search'); return false; }">
|
||||
<textbox id="tb-search" type="timed" timeout="250" command="cmd_zotero_search" dir="reverse" onkeypress="if(event.keyCode == event.DOM_VK_ESCAPE) { this.value = ''; this.doCommand('cmd_zotero_search'); return false; } return true;">
|
||||
<toolbarbutton id="tb-search-cancel" oncommand="this.parentNode.value='';" hidden="true"/>
|
||||
</textbox>
|
||||
</toolbar>
|
||||
|
|
Loading…
Reference in New Issue
Block a user