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