Very small cosmetic bugfix

This commit is contained in:
Rick Falkvinge
2014-09-27 18:06:32 +02:00
parent 127dd37a9d
commit bc3f41cb46
+2 -2
View File
@@ -107,7 +107,7 @@
// If changing Active, set Expensable.Enabled to Active.Checked. If false, set Expensable.Checked to false, too
if ($(this).attr("rel") == "Active") {
if (!$(this).prop('checked')) {
if (!$(this).prop('checked') && $("#CheckAccountExpensable").prop("checked")) {
$("#CheckAccountExpensable").prop("checked", false).change();
}
}
@@ -115,7 +115,7 @@
// If changing Expensable to true, make sure that Active is true, too
if ($(this).attr("rel") == "Expensable") {
if ($(this).prop('checked')) {
if ($(this).prop('checked') && !$("#CheckAccountActive").prop("checked")) {
$("#CheckAccountActive").prop("checked", true).change();
}
}