aboutsummaryrefslogtreecommitdiffstats
path: root/data/tweaks/checkin-context.js
blob: 0ccec0ca26014083c2f298b733c9ed8c17aa11ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;
});