aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-09-01 14:31:03 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-09-01 14:32:54 +0200
commit3c1055ba0f1024133d5ffe5e98d95d00f3b97cbe (patch)
treed80dbba979c978b2f0a0962e99a114b6a14da28e /lib/main.js
parent66eae433f98e8c9aed47200d96161d2404402cc1 (diff)
downloadbugzilla-triage-3c1055ba0f1024133d5ffe5e98d95d00f3b97cbe.tar.gz
Better MVC separation ... generating time sheet in content script.
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js
index 643ef36..6a5e58c 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -42,15 +42,16 @@ var messageHandler = exports.messageHandler = function messageHandler(
case "AddLogRecord":
logger.addLogRecord(msg.data);
break;
- case "GenerateTS":
- logger.generateTimeSheet();
- break;
case "ClearTS":
logger.clearTimeSheet();
break;
case "ImportTS":
logger.importTimeSheet();
break;
+ case "GetTSData":
+ worker.postMessage(new Message("ReturningLogData",
+ logger.getAllRecords()));
+ break;
case "GetInstalledPackages":
// send message with packages back
libbz.getInstalledPackages(msg.data, function(pkgsMsg) {