aboutsummaryrefslogblamecommitdiffstats
path: root/data/lib/checkin-context.js
blob: 0ccec0ca26014083c2f298b733c9ed8c17aa11ed (plain) (tree)
1
2
3
4
5
6
7
8
9
                                       

                                                 
                                        

   
                                   

                                    

                                                 

                   
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;
});