diff options
Diffstat (limited to 'data/tweaks/checkin-context.js')
-rw-r--r-- | data/tweaks/checkin-context.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/data/tweaks/checkin-context.js b/data/tweaks/checkin-context.js new file mode 100644 index 0000000..0ccec0c --- /dev/null +++ b/data/tweaks/checkin-context.js @@ -0,0 +1,13 @@ +self.on('click', function(node, data) { + var message = document + .getElementById("__bz_tw_checkin_comment"); + self.postMessage(message.textContent); +}); + +self.on('context', function(node) { + if (!onBugzillaPage(document.URL)) + return false; + var message = document + .getElementById("__bz_tw_checkin_comment"); + return !!message; +}); |