| Line 278... |
Line 278... |
| 278 |
var amount = $('#amount').val();
|
278 |
var amount = $('#amount').val();
|
| 279 |
if(amount == "" || parseFloat(amount) <= 0){
|
279 |
if(amount == "" || parseFloat(amount) <= 0){
|
| 280 |
alert("Invalid amount");
|
280 |
alert("Invalid amount");
|
| 281 |
return;
|
281 |
return;
|
| 282 |
}
|
282 |
}
|
| 283 |
var receiveDateTime = startDate;
|
283 |
let receiveDateTime = getDatesFromPicker('input[name="receiveDateTime"]');
|
| 284 |
var providerName = $('#rechargeProvider option:selected').text();
|
284 |
var providerName = $('#rechargeProvider option:selected').text();
|
| 285 |
if(confirm("Are you sure you want to add money to "+providerName+" wallet!") == true){
|
285 |
if(confirm("Are you sure you want to add money to "+providerName+" wallet!") == true){
|
| 286 |
doPostAjaxRequestHandler(context+"/addMoneyToRechargeProviderWallet?providerId="+providerId+"&amount="+amount+"&receiveDateTime="+startDate, function(response){
|
286 |
doPostAjaxRequestHandler(context + "/addMoneyToRechargeProviderWallet?providerId=" + providerId + "&amount=" + amount + "&receiveDateTime=" + receiveDateTime.startDate, function (response) {
|
| 287 |
$('#main-content').html(response);
|
287 |
$('#main-content').html(response);
|
| 288 |
});
|
288 |
});
|
| 289 |
}
|
289 |
}
|
| 290 |
}
|
290 |
}
|
| 291 |
|
291 |
|