diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-09-01 14:31:03 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-09-01 14:32:54 +0200 |
commit | 3c1055ba0f1024133d5ffe5e98d95d00f3b97cbe (patch) | |
tree | d80dbba979c978b2f0a0962e99a114b6a14da28e /lib/main.js | |
parent | 66eae433f98e8c9aed47200d96161d2404402cc1 (diff) | |
download | bugzilla-triage-3c1055ba0f1024133d5ffe5e98d95d00f3b97cbe.tar.gz |
Better MVC separation ... generating time sheet in content script.
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 7 |
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) { |