Skip to content

Commit

Permalink
Fix mail & multimail
Browse files Browse the repository at this point in the history
Fixes #102
  • Loading branch information
dpoeschl committed Aug 4, 2016
1 parent 8504abd commit bb0b706
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ function addButtonsToListPage(isPull, currentSettings) {

for (var i = 0; i < itemListElement.children.length; i++) {
var itemElement = itemListElement.children[i];
var titleElement = itemElement.getElementsByClassName("issue-title")[0];
var titleElement = itemElement.getElementsByClassName("d-table-cell width-full")[0];

var urlParts = titleElement.getElementsByClassName("issue-title-link")[0].href.split("/");
var urlParts = titleElement.getElementsByClassName("Box-row-link")[0].href.split("/");
var issueNumber = urlParts[urlParts.length - 1];
var issueTitle = titleElement.getElementsByClassName("issue-title-link")[0].innerHTML;
var issueTitle = titleElement.getElementsByClassName("Box-row-link")[0].innerHTML;

(function () {
var _issueNumber = issueNumber;
Expand Down Expand Up @@ -1543,8 +1543,8 @@ function sendmultimail(issuesList, isPull) {
if (issuesList.children[i].classList.contains("selected")) {
count++;
var issue = issuesList.children[i];
var issueTitle = issue.getElementsByClassName("width-full p-3")[0].children[0].children[0].innerText;
var urlParts = issue.getElementsByClassName("width-full p-3")[0].children[0].children[0].href.split("/");
var issueTitle = issue.getElementsByClassName("width-full p-3")[0].children[1].innerText;
var urlParts = issue.getElementsByClassName("width-full p-3")[0].children[1].href.split("/");
var issueNumber = urlParts[urlParts.length - 1].trim();

singleIssueNumber = issueNumber;
Expand Down

0 comments on commit bb0b706

Please sign in to comment.