Commit ed8170a4 authored by Yaroslav Lushnikov's avatar Yaroslav Lushnikov 🦆

Add a "Adyax issue" feature

parent 4984607c
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
"scripts/pm/in_progress.js", "scripts/pm/in_progress.js",
"scripts/pm/branch.js", "scripts/pm/branch.js",
"scripts/pm/commit_message.js", "scripts/pm/commit_message.js",
"scripts/pm/prepare_assigment.js" "scripts/pm/prepare_assigment.js",
"scripts/pm/adyax_issue.js"
] ]
}, },
{ {
......
(function($) {
var issueTitle = $('body.controller-issues.action-show').find('.subject h3');
if (issueTitle) {
var regex = new RegExp('^#[0-9]{1,7}');
var searchResult = issueTitle.html().match(regex);
if (searchResult) {
var issueNum = searchResult[0].replace('#', '');
var link = "<a href='https://prj.adyax.com/issues/" + issueNum + "' target='_blank'>#" + issueNum + '</a>';
var newIssueTitle = issueTitle.html().replace(searchResult[0], link);
issueTitle.html(newIssueTitle);
}
}
})(jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment