diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index d24faa354..4896a243d 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -26,8 +26,8 @@ var Zotero_QuickFormat = new function () { var initialized, io, qfs, qfi, qfiWindow, qfiDocument, qfe, qfb, qfbHeight, keepSorted, showEditor, referencePanel, referenceBox, referenceHeight, separatorHeight, - curLocator, curLocatorLabel, curIDs = [], curResizer, dragging, panel, panelPrefix, - panelSuffix, panelSuppressAuthor, panelLocatorLabel, panelLocator, panelInfo, + currentLocator, currentLocatorLabel, currentIDs = [], currentSearchTime, dragging, panel, + panelPrefix, panelSuffix, panelSuppressAuthor, panelLocatorLabel, panelLocator, panelInfo, panelRefersToBubble; // A variable that contains the timeout object for the latest onKeyPress event @@ -190,8 +190,8 @@ var Zotero_QuickFormat = new function () { isBC = false, dateID = false; - curLocator = false; - curLocatorLabel = false; + currentLocator = false; + currentLocatorLabel = false; // check for adding a number onto a previous page number if(numRe.test(str)) { @@ -225,7 +225,7 @@ var Zotero_QuickFormat = new function () { } // TODO support types other than page - curLocator = m[2]; + currentLocator = m[2]; str = str.substring(0, m.index); } @@ -237,11 +237,11 @@ var Zotero_QuickFormat = new function () { if(m[3]) { isBC = true; } - if(!curLocator && m[4]) { - curLocator = m[4]; + if(!currentLocator && m[4]) { + currentLocator = m[4]; } } else { - curLocator = m[1]; + currentLocator = m[1]; } str = str.substr(0, m.index)+str.substring(m.index+m[0].length); @@ -262,11 +262,10 @@ var Zotero_QuickFormat = new function () { var searchResultIDs = (haveConditions ? s.search() : []); // No need to refresh anything if box hasn't changed - if(searchResultIDs.length === curIDs.length) { - Zotero.debug("unchanged"); + if(searchResultIDs.length === currentIDs.length) { var mismatch = false; for(var i=0; i