Fix two JS strict warnings
This commit is contained in:
parent
f37d724a9e
commit
4da36c4f19
2 changed files with 5 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
Zotero_Charset_Menu = new function() {
|
||||
var Zotero_Charset_Menu = new function() {
|
||||
this.populate = populate;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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"];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue