1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 17:03:22 -05:00

Moved display:none to php for reload.

This commit is contained in:
Jonathan Rosenbaum 2015-01-10 08:18:08 +00:00
parent b68b4926b4
commit dfa8d2b2ea
2 changed files with 8 additions and 2 deletions

View File

@ -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();

View File

@ -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>|