Initialize styles in Cite prefpane if not yet loaded

Fixes #904
This commit is contained in:
Dan Stillman 2016-02-06 03:30:54 -05:00
parent 27de351615
commit 49068d1d35

View File

@ -58,6 +58,7 @@ Zotero_Preferences.Cite = {
treechildren.removeChild(treechildren.firstChild);
}
yield Zotero.Styles.init();
var styles = Zotero.Styles.getVisible();
var selectIndex = false;
styles.forEach(function (style, i) {