fix blank fields when converting between footnotes/endnotes or between field types
This commit is contained in:
parent
604082e869
commit
e4f49588c0
|
@ -510,16 +510,17 @@ Zotero.Integration.Request.prototype.setDocPrefs = function() {
|
||||||
.getService(Components.interfaces.nsIWindowWatcher)
|
.getService(Components.interfaces.nsIWindowWatcher)
|
||||||
.openWindow(null, 'chrome://zotero/content/integrationDocPrefs.xul', '',
|
.openWindow(null, 'chrome://zotero/content/integrationDocPrefs.xul', '',
|
||||||
'chrome,modal,centerscreen' + (Zotero.isWin ? ',popup' : ''), io, true);
|
'chrome,modal,centerscreen' + (Zotero.isWin ? ',popup' : ''), io, true);
|
||||||
this._session.prefs.useEndnotes = io.useEndnotes;
|
|
||||||
this._session.prefs.fieldType = io.useBookmarks;
|
|
||||||
Zotero.debug("prefs are")
|
|
||||||
Zotero.debug(this._session.prefs);
|
|
||||||
if(!oldStyle || oldStyle != io.style
|
if(!oldStyle || oldStyle != io.style
|
||||||
|| io.useEndnotes != this._session.prefs.useEndnotes
|
|| io.useEndnotes != this._session.prefs.useEndnotes
|
||||||
|| io.useBookmarks != this._session.prefs.fieldType) {
|
|| io.useBookmarks != this._session.prefs.fieldType) {
|
||||||
this._session.regenerateAll = this._session.bibliographyHasChanged = true;
|
this._session.regenerateAll = this._session.bibliographyHasChanged = true;
|
||||||
this._session.setStyle(io.style, this._session.prefs);
|
|
||||||
|
if(oldStyle != io.style) {
|
||||||
|
this._session.setStyle(io.style, this._session.prefs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
this._session.prefs.useEndnotes = io.useEndnotes;
|
||||||
|
this._session.prefs.fieldType = io.useBookmarks;
|
||||||
|
|
||||||
this.responseHeader.appendChild(<style
|
this.responseHeader.appendChild(<style
|
||||||
id={io.style} class={this._session.style.class}
|
id={io.style} class={this._session.style.class}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user