aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/cc-context.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-25 01:17:49 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-25 01:17:49 +0100
commit3c073b249228b929ba3ef7c620ddb62220503ec1 (patch)
treeb2274c77ae97dc116675145885b335e2a8377d5f /data/lib/cc-context.js
parent23fb75565611af1e85455844be1d8931efe0a0a4 (diff)
downloadbugzilla-triage-3c073b249228b929ba3ef7c620ddb62220503ec1.tar.gz
Working on cutting down lines from bug-page-mod.js
Diffstat (limited to 'data/lib/cc-context.js')
-rw-r--r--data/lib/cc-context.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/lib/cc-context.js b/data/lib/cc-context.js
new file mode 100644
index 0000000..38397a9
--- /dev/null
+++ b/data/lib/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);
+});