Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
1ff140ea
Commit
1ff140ea
authored
Oct 11, 2016
by
Linus G Thiel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close any open tooltips before page:fetch
parent
60eca5f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
CHANGELOG.md
CHANGELOG.md
+1
-0
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+1
-5
app/assets/javascripts/lib/utils/common_utils.js
app/assets/javascripts/lib/utils/common_utils.js
+8
-0
No files found.
CHANGELOG.md
View file @
1ff140ea
...
...
@@ -49,6 +49,7 @@ Please view this file on the master branch, on stable branches it's out of date.
-
Don't include archived projects when creating group milestones. !4940 (Jeroen Jacobs)
-
Add tag shortcut from the Commit page. !6543
-
Keep refs for each deployment
-
Close open tooltips on page navigation (Linus Thiel)
-
Allow browsing branches that end with '.atom'
-
Log LDAP lookup errors and don't swallow unrelated exceptions. !6103 (Markus Koller)
-
Replace unique keyframes mixin with keyframe mixin with specific names (ClemMakesApps)
...
...
app/assets/javascripts/application.js
View file @
1ff140ea
...
...
@@ -123,15 +123,11 @@
return
str
.
replace
(
/<
(?:
.|
\n)
*
?
>/gm
,
''
);
};
window
.
unbindEvents
=
function
()
{
return
$
(
document
).
off
(
'
scroll
'
);
};
window
.
shiftWindow
=
function
()
{
return
scrollBy
(
0
,
-
100
);
};
document
.
addEventListener
(
"
page:fetch
"
,
unbindEvents
);
document
.
addEventListener
(
"
page:fetch
"
,
gl
.
utils
.
cleanupBeforeFetch
);
window
.
addEventListener
(
"
hashchange
"
,
shiftWindow
);
...
...
app/assets/javascripts/lib/utils/common_utils.js
View file @
1ff140ea
...
...
@@ -43,6 +43,14 @@
parser
.
href
=
url
;
return
parser
;
};
gl
.
utils
.
cleanupBeforeFetch
=
function
()
{
// Unbind scroll events
$
(
document
).
off
(
'
scroll
'
);
// Close any open tooltips
$
(
'
.has-tooltip, [data-toggle="tooltip"]
'
).
tooltip
(
'
destroy
'
);
};
return
jQuery
.
timefor
=
function
(
time
,
suffix
,
expiredLabel
)
{
var
suffixFromNow
,
timefor
;
if
(
!
time
)
{
...
...
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