Fix JS strict warnings

This commit is contained in:
Dan Stillman 2006-10-19 23:42:47 +00:00
parent cb4b7f0642
commit 2d98bdf4b5
4 changed files with 7 additions and 4 deletions

View File

@ -71,6 +71,7 @@ var Zotero_File_Interface = new function() {
translation.translate();
});
}
return false;
}
/*

View File

@ -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('-');

View File

@ -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()

View File

@ -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>