feat: add trello column card selection

This commit is contained in:
Bengt Brodersen 2016-08-25 15:24:09 +02:00 committed by GitHub
parent 07707d9e52
commit dac931ece7

View File

@ -888,11 +888,18 @@
} }
module.getSelectedIssueKeyList = function() { module.getSelectedIssueKeyList = function() {
//Board view
if (/.*\/b\/.*/g.test(document.URL)) {
return $( "textarea.list-header-name.is-editing" ).parent().parent().find(".list-cards > .list-card > .list-card-details > .list-card-title").map(function() {
return $(this).attr("href").match(/.*\/c\/([^/]*).*/)[1];
});
}
//Card View //Card View
if (/.*\/c\/.*/g.test(document.URL)) { if (/.*\/c\/.*/g.test(document.URL)) {
return [document.URL.match(/.*\/c\/([^/]*).*/)[1]]; return [document.URL.match(/.*\/c\/([^/]*).*/)[1]];
} }
return []; return [];
}; };