More preps for Deposit Calculator.

This commit is contained in:
Jonathan Rosenbaum
2015-01-02 22:44:27 +00:00
parent f6d392b0b5
commit d8b74b7a79
3 changed files with 27 additions and 12 deletions
+6 -8
View File
@@ -28,15 +28,13 @@ $(function() {
// Deposit Calculator
if ( $(".paid").length ) { // any transactions?
var deposit = {};
$(".deposit input").each(function(count){
deposit[count] = this.name;
});
$(".deposit input").each(function(){ console.log(this.name);});
var deposit_length = $(".deposit").length;
if ( deposit_length == 1 ) { // one visible deposit could be 1 or more invisible
var deposit_number = $(".deposit input").attr("name");
//console.log(deposit_number);
}
$.post("json/transaction.php",{"deposit": deposit});
}