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
Boxiang Sun
gitlab-ce
Commits
533ef87b
Commit
533ef87b
authored
Aug 17, 2013
by
GitLab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make flash messages fixed and sticked to bottom
parent
0e387919
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/assets/javascripts/main.js.coffee
app/assets/javascripts/main.js.coffee
+1
-1
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+4
-0
No files found.
app/assets/javascripts/main.js.coffee
View file @
533ef87b
...
@@ -89,7 +89,7 @@ $ ->
...
@@ -89,7 +89,7 @@ $ ->
if
(
flash
=
$
(
".flash-container"
)).
length
>
0
if
(
flash
=
$
(
".flash-container"
)).
length
>
0
flash
.
click
->
$
(
@
).
fadeOut
()
flash
.
click
->
$
(
@
).
fadeOut
()
flash
.
show
()
flash
.
show
()
setTimeout
(
->
flash
.
fadeOut
()),
9
000
setTimeout
(
->
flash
.
fadeOut
()),
3
000
# Disable form buttons while a form is submitting
# Disable form buttons while a form is submitting
$
(
'body'
).
on
'ajax:complete, ajax:beforeSend, submit'
,
'form'
,
(
e
)
->
$
(
'body'
).
on
'ajax:complete, ajax:beforeSend, submit'
,
'form'
,
(
e
)
->
...
...
app/assets/stylesheets/common.scss
View file @
533ef87b
...
@@ -51,6 +51,10 @@ table a code {
...
@@ -51,6 +51,10 @@ table a code {
text-align
:
center
;
text-align
:
center
;
color
:
#fff
;
color
:
#fff
;
font-size
:
14px
;
font-size
:
14px
;
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
opacity
:
0
.8
;
.flash-notice
{
.flash-notice
{
background
:
#49C
;
background
:
#49C
;
...
...
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