Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jz
CCCROC
Commits
cc0f74d5
Commit
cc0f74d5
authored
Dec 26, 2014
by
Oliver Feldt
Browse files
Colred modal-dialog headers appropriatly
parent
3c92c351
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/ccc_roc/assets/javascripts/application.js
View file @
cc0f74d5
...
...
@@ -81,6 +81,8 @@ $("#search_form").on("submit", function(e) {
}
var
switch_button_text
=
angel
===
null
?
"
Set Angel
"
:
"
Switch Angel
"
;
$
(
"
#radio_form button[name='switch']
"
).
html
(
switch_button_text
);
$
(
"
#radio .modal-header
"
).
addClass
(
angel
!==
null
?
"
info
"
:
"
success
"
);
$
(
"
#radio .modal-header
"
).
removeClass
(
angel
===
null
?
"
info
"
:
"
success
"
);
$
(
"
#radio_header
"
).
html
(
radio
.
name
);
$
(
"
#radio
"
).
modal
(
"
show
"
);
}
...
...
@@ -191,6 +193,8 @@ $("#radios").on("click", function(e) {
}
$
(
"
#radio_form button[name='switch']
"
).
html
(
switch_button_text
);
$
(
"
#radio_header
"
).
html
(
radio
.
name
);
$
(
"
#radio .modal-header
"
).
addClass
(
radio
.
angel
!==
undefined
?
"
info
"
:
"
success
"
);
$
(
"
#radio .modal-header
"
).
removeClass
(
radio
.
angel
===
undefined
?
"
info
"
:
"
success
"
);
$
(
"
#radio
"
).
modal
(
"
show
"
);
$
.
getJSON
(
"
/checkouts
"
,
...
...
data/ccc_roc/assets/stylesheets/application.sass
View file @
cc0f74d5
...
...
@@ -2,3 +2,11 @@
body
padding-top
:
50px
.modal-header.info
border-radius
:
6px
6px
0px
0px
background-color
:
#c4e3f3
.modal-header.success
border-radius
:
6px
6px
0px
0px
background-color
:
#d0e9c6
Write
Preview
Supports
Markdown
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