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
4984607c
Commit
4984607c
authored
Jun 20, 2018
by
Yaroslav Lushnikov
🦆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a "Copy branch name"
parent
cbc293f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
manifest.json
extension/manifest.json
+1
-0
branch.js
extension/scripts/pm/branch.js
+13
-0
No files found.
extension/manifest.json
View file @
4984607c
...
...
@@ -17,6 +17,7 @@
"js"
:
[
"scripts/external/jQuery.js"
,
"scripts/pm/in_progress.js"
,
"scripts/pm/branch.js"
,
"scripts/pm/commit_message.js"
,
"scripts/pm/prepare_assigment.js"
]
...
...
extension/scripts/pm/branch.js
0 → 100644
View file @
4984607c
(
function
(
$
)
{
var
issueTitle
=
$
(
'h2'
).
attr
(
'style'
,
'cursor: pointer'
);
issueTitle
.
on
(
'click'
,
function
(
e
)
{
var
branchName
=
issueTitle
.
html
().
replace
(
' #'
,
'-'
).
toLowerCase
();
var
textfield
=
$
(
'<input type="text" style="display: block;" value="'
+
branchName
.
replace
(
/"/g
,
'"'
)
+
'">'
);
issueTitle
.
after
(
textfield
);
textfield
.
select
();
document
.
execCommand
(
'copy'
);
textfield
.
remove
();
});
})(
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