aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/checkin-context.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 14:28:10 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-28 19:14:20 +0200
commitaf9a8239914fb783ddd41a9dc571bd5fb2126050 (patch)
tree5f2414fa4e3fb6251e35c547a6152a780296ca9a /data/tweaks/checkin-context.js
parent32af48e442a960b8c3f199f5ffad28a34590fcda (diff)
downloadbugzilla-triage-af9a8239914fb783ddd41a9dc571bd5fb2126050.tar.gz
Reorganization.
* fixingAttMIME, rhbzpage, xorgBugCategories moved to data/rhlib directory, * docs directory removed ... keep documentation in JSDocs; rewrite in MD is a waste of time. * move Ehsan’s scripts to separate data/tweaks directory.
Diffstat (limited to 'data/tweaks/checkin-context.js')
-rw-r--r--data/tweaks/checkin-context.js13
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;
+});