mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-04-04 09:33:24 -04:00
The corrects a hereunto unknown very minor bug where data is not being check for value in the deposit calculator function.
This commit is contained in:
parent
a557e2b8f5
commit
7fb848f7d4
@ -450,6 +450,7 @@ $(function() {
|
|||||||
|
|
||||||
$.post("json/transaction.php",{"deposit": deposit}, function(data) {
|
$.post("json/transaction.php",{"deposit": deposit}, function(data) {
|
||||||
|
|
||||||
|
if (data) {
|
||||||
var obj = $.parseJSON(data);
|
var obj = $.parseJSON(data);
|
||||||
|
|
||||||
$.each(obj,function(k,v){
|
$.each(obj,function(k,v){
|
||||||
@ -478,8 +479,9 @@ $(function() {
|
|||||||
$("#" + k + "_difference span").text("n/a");
|
$("#" + k + "_difference span").text("n/a");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
}); // each
|
||||||
|
} // if data
|
||||||
|
|
||||||
}); // end function
|
}); // end function
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user