Browse Source

Moved display:none to php for reload.

devel
Jonathan Rosenbaum 10 years ago
parent
commit
dfa8d2b2ea
  1. 8
      js/transaction.js
  2. 2
      transaction_log.php

8
js/transaction.js

@ -82,11 +82,15 @@ $(function() {
var str = this.id;
var id = str.match(/\d+/);
if (diff != 0) {
/*
if(!$("#" + id[0] + "_different_change").length) {
$("#" + this.id).after("<span id=" + id[0] + "_different_change style='padding-left: 5px; padding-right: 5px; color: red;'></span>")
$("#" + this.id).after("<span id=" + id[0] +
"_different_change style='padding-left: 5px; padding-right: 5px; color: red;'></span>")
} else {
$("#" + id[0] + "_different_change").show();
}
}
*/
$("#" + id[0] + "_different_change").show();
$("#" + id[0] + "_different_change").text("(" + diff.toFixed(2) + ")");
} else {
$("#" + id[0] + "_different_change").hide();

2
transaction_log.php

@ -517,6 +517,8 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
" $<span class='editable_change' id='" . $ti . "_editable_change'>$cf</span>";
if ($diff != "") {
echo "<span id='" . $ti . "_different_change' style='padding-left: 5px; padding-right: 5px; color: red;'>$diff</span>";
} else {
echo "<span id='" . $ti . "_different_change' style='padding-left: 5px; padding-right: 5px; color: red; display: none;'></span>";
}
echo '</span>|
<span style="padding-left:10px; padding-right:10px;" id="' . $ti . '_credit">Credit Card: <span></span></span>|

Loading…
Cancel
Save