diff options
-rw-r--r-- | bugzillaBugTriage.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 55d3dea..6dc00a9 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -977,7 +977,7 @@ function RHBugzillaPage(doc) { this.doc.getElementById("generateTSButton").addEventListener( "click", function(evt) { - createBlankPage.call(that, "TimeSheet", + hlpr.createBlankPage.call(that, "TimeSheet", that.generateTimeSheet); evt.stopPropagation(); evt.preventDefault(); @@ -991,7 +991,7 @@ function RHBugzillaPage(doc) { clearLogAElem.addEventListener("click", function() { myStorage.logs = {}; jetpack.storage.simple.sync(); - this.style.color = EmptyLogsColor; + this.style.color = that.EmptyLogsColor; clearLogAElem.style.fontWeight = "normal"; console.log("mystorage.logs wiped out!"); }, false); @@ -1005,7 +1005,7 @@ function RHBugzillaPage(doc) { clearLogAElem.style.color = this.FullLogsColor; clearLogAElem.style.fontWeight = "bolder"; } else { - clearLogAElem.style.color = EmptyLogsColor; + clearLogAElem.style.color = this.EmptyLogsColor; clearLogAElem.style.fontWeight = "normal"; } } @@ -2327,6 +2327,7 @@ RHBugzillaPage.prototype.addLogRecord = function() { }; RHBugzillaPage.prototype.timeSheetRecordsPrinter = function(body, records) { + var that = this; // sort the records into temporary array var tmpArr = []; @@ -2344,7 +2345,7 @@ RHBugzillaPage.prototype.timeSheetRecordsPrinter = function(body, records) { tmpArr .forEach(function(rec) { var x = rec[1]; - var dayStr = this.getISODate(x.date); + var dayStr = that.getISODate(x.date); if (dayStr != currentDay) { currentDay = dayStr; body.innerHTML += "<hr/><p><strong>" + currentDay |