aboutsummaryrefslogtreecommitdiffstats
path: root/data/js/checkin-context.js
blob: 4d073be51f0dad8645af768810395578827f3a43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
on('click', function(node, data) {
  var message = document.getElementById("__bz_tw_checkin_comment");
  postMessage(message.textContent);
});

on('context', function(node) {
  if (!onBugzillaPage(document.URL))
    return false;
  var message = document.getElementById("__bz_tw_checkin_comment");
  return !!message;
});