aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/cc-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-06-05 14:47:40 +0200
commit7b6eefcd506ec03e1db422ca6e1f4f1bb8420d1c (patch)
tree3a4b3480ea513c37f98782dd62193f4379ff48aa /data/tweaks/cc-context.js
parent55d9a312fbba91f1bcf5e3f3291b7bece8abb178 (diff)
downloadbugzilla-triage-7b6eefcd506ec03e1db422ca6e1f4f1bb8420d1c.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/cc-context.js')
-rw-r--r--data/tweaks/cc-context.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/tweaks/cc-context.js b/data/tweaks/cc-context.js
new file mode 100644
index 0000000..81b0a2d
--- /dev/null
+++ b/data/tweaks/cc-context.js
@@ -0,0 +1,8 @@
+self.on('click', function(node, data) {
+ var style = document.getElementById("bztw_cc");
+ style.disabled = !style.disabled;
+});
+
+self.on('context', function(node) {
+ return onBugzillaPage(document.URL);
+});