Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
pm-tools
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Yaroslav Lushnikov
pm-tools
Commits
ed8170a4
Commit
ed8170a4
authored
Jun 21, 2018
by
Yaroslav Lushnikov
🦆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a "Adyax issue" feature
parent
4984607c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
manifest.json
extension/manifest.json
+2
-1
adyax_issue.js
extension/scripts/pm/adyax_issue.js
+14
-0
No files found.
extension/manifest.json
View file @
ed8170a4
...
@@ -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"
]
]
},
},
{
{
...
...
extension/scripts/pm/adyax_issue.js
0 → 100644
View file @
ed8170a4
(
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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment