Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
fix for GitHub issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Mar 22, 2015
1 parent 021cb82 commit a336679
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TrelloContextMenu.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// @require https://api.trello.com/1/client.js?key=d141cd6874d46ba92770697e7721a614
// @downloadURL https://raw.githubusercontent.com/jantman/userscripts/master/TrelloContextMenu.md
// @updateURL https://raw.githubusercontent.com/jantman/userscripts/master/TrelloContextMenu.md
// @version 0.1.2
// @version 0.1.3
// ==/UserScript==

var trello_api_key = 'd141cd6874d46ba92770697e7721a614';
Expand Down Expand Up @@ -142,8 +142,9 @@ function makecard() {

} else if ($('#show_issue').length) {

// We're looking at a GitHub issue
name = $('#show_issue .number strong').text() + ' ' + $('#show_issue .discussion-topic-title').text();
// We're looking at a GitHub issue
var ghtemp = $('.js-current-repository').attr('href');
name = ghtemp.replace(/^\//, '') + ' ' + $('#show_issue .gh-header-number').text() + ' ' + $('#show_issue .js-issue-title').text();

} else if ($('#all_commit_comments').length) {

Expand Down

0 comments on commit a336679

Please sign in to comment.