| Line 16... |
Line 16... |
| 16 |
|
16 |
|
| 17 |
jQuery('.showDenomination').live("click", function() {
|
17 |
jQuery('.showDenomination').live("click", function() {
|
| 18 |
var denominationType = jQuery(this).attr('denominationType');
|
18 |
var denominationType = jQuery(this).attr('denominationType');
|
| 19 |
var operatorId = jQuery('#operatorSelector option:selected').val();
|
19 |
var operatorId = jQuery('#operatorSelector option:selected').val();
|
| 20 |
var circleName = jQuery('#circleName').val();
|
20 |
var circleName = jQuery('#circleName').val();
|
| - |
|
21 |
jQuery('#popularPlansInner').empty();
|
| - |
|
22 |
$('#popularPlansInner').append('<div style="padding-top:90px;" align="center" class="img"><img title="loading" alt="loading" src="/images/loading.gif"></div>');
|
| 21 |
jQuery('#popularPlansDiv').show();
|
23 |
jQuery('#popularPlansDiv').show();
|
| 22 |
jQuery.ajax({
|
24 |
jQuery.ajax({
|
| 23 |
type : "GET",
|
25 |
type : "GET",
|
| 24 |
url : "/recharge!getAllDenominations?operatorId=" + operatorId + "&circleName=" + circleName + "&denominationType=" + denominationType,
|
26 |
url : "/recharge!getAllDenominations?operatorId=" + operatorId + "&circleName=" + circleName + "&denominationType=" + denominationType,
|
| 25 |
success : function(response) {
|
27 |
success : function(response) {
|
| - |
|
28 |
jQuery('#popularPlansInner').empty();
|
| 26 |
jQuery('#popularPlansInner').html(response);
|
29 |
jQuery('#popularPlansInner').html(response);
|
| 27 |
},
|
30 |
},
|
| 28 |
failure : function() {
|
31 |
failure : function() {
|
| - |
|
32 |
jQuery('#popularPlansInner').empty();
|
| 29 |
jQuery('#popularPlansInner').html("<div style='padding:15px;'>This information is unavailable for now.<br>You can recharge with the amount you normally use or you can try later.</div>");
|
33 |
jQuery('#popularPlansInner').html("<div style='padding:15px;'>This information is unavailable for now.<br>You can recharge with the amount you normally use or you can try later.</div>");
|
| 30 |
}
|
34 |
}
|
| 31 |
});
|
35 |
});
|
| 32 |
});
|
36 |
});
|
| 33 |
|
37 |
|