mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 10:21:38 -04:00
More preps for Deposit Calculator.
This commit is contained in:
+6
-8
@@ -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});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user