Commit ec724ce6 authored by Floréal Cabanettes's avatar Floréal Cabanettes

Fix style + add selected behavior in addition

parent be8a2162
......@@ -8,7 +8,7 @@ body {
margin-top: 60px;
}
h1, h2, label, table {
h1, h2, label, table.addition {
color: #fff;
}
......@@ -173,13 +173,13 @@ div.date-div {
position: relative;
}
table tr, table td {
height: 35px !important;
table.addition tr, table td {
height: 40px !important;
line-height: 30px;
font-size: 14pt;
}
table {
table.addition {
width: 100% !important;
}
......@@ -199,6 +199,10 @@ div#addition {
padding: 1px 20px 20px;
}
table.addition tr.selected {
background: #1c728c !important;
}
button#goback {
margin-top: 25px;
padding: 5px 10px;
......
......@@ -42,6 +42,14 @@ trackmybank.init = function() {
});
$("#show-addition").on("click touch", trackmybank.show_addition);
$(document).on("click touch", "#goback", trackmybank.goback);
$(document).on("click touch", "table.addition tr", function() {
if ($(this).hasClass("selected")) {
$(this).removeClass("selected");
}
else {
$(this).addClass("selected");
}
});
};
trackmybank.init_special_fields = function () {
......
Markdown is supported
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