Fix two JS strict warnings

This commit is contained in:
Dan Stillman 2008-09-01 02:00:17 +00:00
parent f37d724a9e
commit 4da36c4f19
2 changed files with 5 additions and 3 deletions

View file

@ -20,7 +20,7 @@
***** END LICENSE BLOCK *****
*/
Zotero_Charset_Menu = new function() {
var Zotero_Charset_Menu = new function() {
this.populate = populate;
/**

View file

@ -40,8 +40,10 @@ function init()
initSearchPane();
var charsetMenu = document.getElementById("zotero-import-charsetMenu");
charsetMap = Zotero_Charset_Menu.populate(charsetMenu, false);
charsetMenu.selectedItem = charsetMap[Zotero.Prefs.get("import.charset")] ? charsetMap[Zotero.Prefs.get("import.charset")] : charsetMap["auto"];
var charsetMap = Zotero_Charset_Menu.populate(charsetMenu, false);
charsetMenu.selectedItem =
charsetMap[Zotero.Prefs.get("import.charset")] ?
charsetMap[Zotero.Prefs.get("import.charset")] : charsetMap["auto"];
}