diff options
author | Heather Arthur <fayearthur@gmail.com> | 2011-02-15 11:59:54 -0800 |
---|---|---|
committer | Heather Arthur <fayearthur@gmail.com> | 2011-02-15 11:59:54 -0800 |
commit | 09842a06c5ff1fa1795877836c21ea928a8a7fcf (patch) | |
tree | 5b55be32c7cb18b5947e84e344ed31ea850a6a23 /data/js/checkin-context.js | |
parent | 61432c0d96b40993c27ec4fa3350532f6ae2cf34 (diff) | |
download | bugzilla-triage-09842a06c5ff1fa1795877836c21ea928a8a7fcf.tar.gz |
Update to new Addon SDK page-mod and context-menu modules
Diffstat (limited to 'data/js/checkin-context.js')
-rw-r--r-- | data/js/checkin-context.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/data/js/checkin-context.js b/data/js/checkin-context.js new file mode 100644 index 0000000..4d073be --- /dev/null +++ b/data/js/checkin-context.js @@ -0,0 +1,11 @@ +on('click', function(node, data) { + var message = document.getElementById("__bz_tw_checkin_comment"); + postMessage(message.textContent); +}); + +on('context', function(node) { + if (!onBugzillaPage(document.URL)) + return false; + var message = document.getElementById("__bz_tw_checkin_comment"); + return !!message; +}); |