BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
af0c6917
Commit
af0c6917
authored
Jun 07, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the JS for the `p b` shortcut and fix its CSS
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
54c04f53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
shortcuts.js
app/assets/javascripts/shortcuts.js
+4
-3
peek.scss
vendor/assets/stylesheets/peek.scss
+0
-5
No files found.
app/assets/javascripts/shortcuts.js
View file @
af0c6917
...
...
@@ -58,10 +58,11 @@ import findAndFollowLink from './shortcuts_dashboard_navigation';
Shortcuts
.
prototype
.
onTogglePerfBar
=
function
(
e
)
{
e
.
preventDefault
();
if
(
Cookies
.
get
(
'perf_bar_enabled'
)
===
'true'
)
{
Cookies
.
remove
(
'perf_bar_enabled'
,
{
path
:
'/'
});
const
performanceBarCookieName
=
'perf_bar_enabled'
;
if
(
Cookies
.
get
(
performanceBarCookieName
)
===
'true'
)
{
Cookies
.
remove
(
performanceBarCookieName
,
{
path
:
'/'
});
}
else
{
Cookies
.
set
(
'perf_bar_enabled'
,
true
,
{
path
:
'/'
});
Cookies
.
set
(
performanceBarCookieName
,
true
,
{
path
:
'/'
});
}
gl
.
utils
.
refreshCurrentPage
();
};
...
...
vendor/assets/stylesheets/peek.scss
View file @
af0c6917
...
...
@@ -6,12 +6,7 @@ header.navbar-gitlab.with-peek {
}
#peek
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
35px
;
z-index
:
400
;
background
:
#000
;
line-height
:
35px
;
color
:
#999
;
...
...
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