aboutsummaryrefslogtreecommitdiffstats
path: root/data/js/cc-context.js
diff options
context:
space:
mode:
authorHeather Arthur <fayearthur@gmail.com>2011-02-15 11:59:54 -0800
committerHeather Arthur <fayearthur@gmail.com>2011-02-15 11:59:54 -0800
commit09842a06c5ff1fa1795877836c21ea928a8a7fcf (patch)
tree5b55be32c7cb18b5947e84e344ed31ea850a6a23 /data/js/cc-context.js
parent61432c0d96b40993c27ec4fa3350532f6ae2cf34 (diff)
downloadbugzilla-triage-09842a06c5ff1fa1795877836c21ea928a8a7fcf.tar.gz
Update to new Addon SDK page-mod and context-menu modules
Diffstat (limited to 'data/js/cc-context.js')
-rw-r--r--data/js/cc-context.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/js/cc-context.js b/data/js/cc-context.js
new file mode 100644
index 0000000..38397a9
--- /dev/null
+++ b/data/js/cc-context.js
@@ -0,0 +1,8 @@
+on('click', function(node, data) {
+ var style = document.getElementById("bztw_cc");
+ style.disabled = !style.disabled;
+});
+
+on('context', function(node) {
+ return onBugzillaPage(document.URL);
+});