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
307eacff
Commit
307eacff
authored
May 22, 2018
by
Yaroslav Lushnikov
🦆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prj.adyax.com
parent
d61529fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
2 deletions
+76
-2
manifest.json
extension/manifest.json
+14
-2
jQuery.js
extension/scripts/external/jQuery.js
+0
-0
jscroll.js
extension/scripts/external/jscroll.js
+43
-0
commit_message.js
extension/scripts/prj.adyax/commit_message.js
+19
-0
No files found.
extension/manifest.json
View file @
307eacff
...
...
@@ -15,16 +15,28 @@
"https://*.i20.biz/*"
],
"js"
:
[
"scripts/
pm
/jQuery.js"
,
"scripts/
external
/jQuery.js"
,
"scripts/pm/in_progress.js"
,
"scripts/pm/commit_message.js"
,
"scripts/pm/prepare_assigment.js"
]
},
{
"matches"
:
[
"https://*.adyax.com/*"
],
"js"
:
[
"scripts/external/jQuery.js"
,
"scripts/external/jscroll.js"
,
"scripts/prj.adyax/commit_message.js"
]
}
],
"permissions"
:
[
"clipboardWrite"
,
"http://www.pm.i20.biz/*"
"http://www.pm.i20.biz/*"
,
"http://www.prj.adyax.com/*"
,
"http://prj.adyax.com/*"
],
"browser_action"
:
{
"default_icon"
:
"images/logo.png"
,
...
...
extension/scripts/
pm
/jQuery.js
→
extension/scripts/
external
/jQuery.js
View file @
307eacff
File moved
extension/scripts/external/jscroll.js
0 → 100644
View file @
307eacff
(
function
(
$
)
{
// Public: jScroll Plugin
$
.
fn
.
jScroll
=
function
(
options
)
{
var
opts
=
$
.
extend
({},
$
.
fn
.
jScroll
.
defaults
,
options
);
return
this
.
each
(
function
()
{
var
$element
=
$
(
this
);
var
$window
=
$
(
window
);
var
locator
=
new
location
(
$element
);
$window
.
scroll
(
function
()
{
$element
.
stop
()
.
animate
(
locator
.
getMargin
(
$window
),
opts
.
speed
);
});
});
// Private
function
location
(
$element
)
{
this
.
min
=
$element
.
offset
().
top
;
this
.
originalMargin
=
parseInt
(
$element
.
css
(
"margin-top"
),
10
)
||
0
;
this
.
getMargin
=
function
(
$window
)
{
var
max
=
$element
.
parent
().
height
()
-
$element
.
outerHeight
();
var
margin
=
this
.
originalMargin
;
if
(
$window
.
scrollTop
()
>=
this
.
min
)
margin
=
margin
+
opts
.
top
+
$window
.
scrollTop
()
-
this
.
min
;
if
(
margin
>
max
)
margin
=
max
;
return
({
"marginTop"
:
margin
+
'px'
});
}
}
};
$
.
fn
.
jScroll
.
defaults
=
{
speed
:
"slow"
,
top
:
10
};
})(
jQuery
);
extension/scripts/prj.adyax/commit_message.js
0 → 100644
View file @
307eacff
(
function
(
$
)
{
var
subject
=
$
(
'.subject h3'
);
var
button
=
$
(
"<button>Commit message</button>"
);
$
(
'#sidebar'
).
append
(
button
);
button
.
on
(
'click'
,
function
(
e
)
{
var
issueId
=
window
.
location
.
pathname
.
split
(
'/'
)[
2
];
var
commitMessage
=
'refs #'
+
issueId
+
' '
+
subject
.
html
();
var
textfield
=
$
(
'<input type="text" style="display: block;" value="'
+
commitMessage
.
replace
(
/"/g
,
'"'
)
+
'">'
);
subject
.
after
(
textfield
);
textfield
.
select
();
document
.
execCommand
(
'copy'
);
textfield
.
remove
();
});
button
.
jScroll
({
top
:
50
});
$
(
document
).
trigger
(
'scroll'
);
})(
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