Commit cc0f74d5 authored by Oliver Feldt's avatar Oliver Feldt
Browse files

Colred modal-dialog headers appropriatly

parent 3c92c351
......@@ -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",
......
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment