Yeah, working mysql/json logic is in place!

This commit is contained in:
Jonathan Rosenbaum
2015-01-03 07:50:48 +00:00
parent d8b74b7a79
commit 890b8f1b15
3 changed files with 69 additions and 46 deletions
+2 -2
View File
@@ -14,14 +14,14 @@ $(function() {
if ($(this).prop("checked")) {
$(this).closest("tr").css("background-color","#E6E7E6");
$('[href$="' + this.name + '"]').hide();
$('[href*="' + this.name + '"]').hide();
console.log(this.name);
$.post("json/transaction.php",{ paid: 1, transaction_id: this.name } );
}
else {
$(this).closest("tr").css("background-color","transparent");
$('[href$="' + this.name + '"]').show();
$('[href*="' + this.name + '"]').show();
$.post("json/transaction.php",{ paid: 0, transaction_id: this.name } );
}
});