diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-04-28 18:02:16 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-04-28 18:02:16 +0200 |
commit | 050e57a33ae49707d29840ecfe02097d49a65ca9 (patch) | |
tree | 67be9a79e43bbd32e5ffdf78f4687a56f9679613 /bugzillaBugTriage.js | |
parent | 6a92a19d3953ec6335dd3b7af0997c436b18c017 (diff) | |
download | bugzilla-triage-050e57a33ae49707d29840ecfe02097d49a65ca9.tar.gz |
Make logs working again.
Diffstat (limited to 'bugzillaBugTriage.js')
-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 |