Don't fire explicit styleChanged event on load
Otherwise, the bottom of the document preferences window can be cut off the first time it is displayed. A styleChanged event is still fired after setting the selection.
This commit is contained in:
parent
b8ce002df3
commit
ecb8cb140d
|
@ -88,10 +88,10 @@ var Zotero_File_Interface_Bibliography = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Has to be async to work properly
|
// Has to be async to work properly
|
||||||
setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
listbox.ensureIndexIsVisible(selectIndex);
|
listbox.ensureIndexIsVisible(selectIndex);
|
||||||
listbox.selectedIndex = selectIndex;
|
listbox.selectedIndex = selectIndex;
|
||||||
});
|
}, 0);
|
||||||
|
|
||||||
// ONLY FOR bibliography.xul: export options
|
// ONLY FOR bibliography.xul: export options
|
||||||
if(document.getElementById("save-as-rtf")) {
|
if(document.getElementById("save-as-rtf")) {
|
||||||
|
@ -119,7 +119,6 @@ var Zotero_File_Interface_Bibliography = new function() {
|
||||||
// bookmarks text
|
// bookmarks text
|
||||||
if(document.getElementById("displayAs")) {
|
if(document.getElementById("displayAs")) {
|
||||||
if(_io.useEndnotes && _io.useEndnotes == 1) document.getElementById("displayAs").selectedIndex = 1;
|
if(_io.useEndnotes && _io.useEndnotes == 1) document.getElementById("displayAs").selectedIndex = 1;
|
||||||
styleChanged(selectIndex);
|
|
||||||
}
|
}
|
||||||
if(document.getElementById("formatUsing")) {
|
if(document.getElementById("formatUsing")) {
|
||||||
if(_io.fieldType == "Bookmark") document.getElementById("formatUsing").selectedIndex = 1;
|
if(_io.fieldType == "Bookmark") document.getElementById("formatUsing").selectedIndex = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user