diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-02-15 00:37:57 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-02-15 00:37:57 +0100 |
commit | 10dcf8de5c6965832452c538451d6170b3bafb66 (patch) | |
tree | 26a485d017ce2d3ea2032293687827f6c6d3a3e8 /lib/util.js | |
parent | 04657077ba12e8f23feaa0c3787b590c44446056 (diff) | |
download | bugzilla-triage-10dcf8de5c6965832452c538451d6170b3bafb66.tar.gz |
Bit of reorganization
Also add an event handler on changes in assigned_to input box
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js index 3532203..089e31c 100644 --- a/lib/util.js +++ b/lib/util.js @@ -63,3 +63,15 @@ exports.getISODate = function getISODate(dateStr) { return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate()); }; + +/** + * object to pack messaging. Use as in + postMessage(new Message("GetPassword", { + login: login, + hostname: location.hostname + })); + */ +exports.Message = function Message(cmd, data) { + this.cmd = cmd; + this.data = data; +}; |