fix counter moving in the wrong direction
This commit is contained in:
parent
0d53142b51
commit
0684030d9b
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ Zotero.Integration.Document.prototype.editBibliography = function() {
|
||||||
// Make sure we have a bibliography
|
// Make sure we have a bibliography
|
||||||
if(!this._getFields(true)) return false;
|
if(!this._getFields(true)) return false;
|
||||||
var haveBibliography = false;
|
var haveBibliography = false;
|
||||||
for(var i=this._fields.length-1; i>=0; i++) {
|
for(var i=this._fields.length-1; i>=0; i--) {
|
||||||
if(this._fields[i].getCode().substr(0, BIBLIOGRAPHY_CODE.length) == BIBLIOGRAPHY_CODE) {
|
if(this._fields[i].getCode().substr(0, BIBLIOGRAPHY_CODE.length) == BIBLIOGRAPHY_CODE) {
|
||||||
haveBibliography = true;
|
haveBibliography = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue