| Line 15... |
Line 15... |
| 15 |
});
|
15 |
});
|
| 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 circleCode = jQuery('#circleCode').val();
|
| 21 |
jQuery('#popularPlansInner').empty();
|
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>');
|
22 |
$('#popularPlansInner').append('<div style="padding-top:90px;" align="center" class="img"><img title="loading" alt="loading" src="/images/loading.gif"></div>');
|
| 23 |
jQuery('#popularPlansDiv').show();
|
23 |
jQuery('#popularPlansDiv').show();
|
| 24 |
jQuery.ajax({
|
24 |
jQuery.ajax({
|
| 25 |
type : "GET",
|
25 |
type : "GET",
|
| 26 |
url : "/recharge!getAllDenominations?operatorId=" + operatorId + "&circleName=" + circleName + "&denominationType=" + denominationType,
|
26 |
url : "/recharge!getAllDenominations?operatorId=" + operatorId + "&circleCode=" + circleCode + "&denominationType=" + denominationType,
|
| 27 |
success : function(response) {
|
27 |
success : function(response) {
|
| 28 |
jQuery('#popularPlansInner').empty();
|
28 |
jQuery('#popularPlansInner').empty();
|
| 29 |
jQuery('#popularPlansInner').html(response);
|
29 |
jQuery('#popularPlansInner').html(response);
|
| 30 |
},
|
30 |
},
|
| 31 |
failure : function() {
|
31 |
failure : function() {
|
| Line 273... |
Line 273... |
| 273 |
url: "/recharge!getServiceProvider?deviceNumber=" + deviceNumber + "&serviceType=" + rechargeType,
|
273 |
url: "/recharge!getServiceProvider?deviceNumber=" + deviceNumber + "&serviceType=" + rechargeType,
|
| 274 |
success:function(msg){
|
274 |
success:function(msg){
|
| 275 |
if(msg != ""){
|
275 |
if(msg != ""){
|
| 276 |
var deviceNumberInfo = msg.split(":");
|
276 |
var deviceNumberInfo = msg.split(":");
|
| 277 |
$('#rechargeDetailsForm select[name="operator"]').val($.trim(deviceNumberInfo[0]));
|
277 |
$('#rechargeDetailsForm select[name="operator"]').val($.trim(deviceNumberInfo[0]));
|
| 278 |
$('#circleName').val($.trim(deviceNumberInfo[1]));
|
278 |
$('#circleCode').val($.trim(deviceNumberInfo[1]));
|
| 279 |
$('#operatorSelector').trigger('change');
|
279 |
$('#operatorSelector').trigger('change');
|
| 280 |
}
|
280 |
}
|
| 281 |
}
|
281 |
}
|
| 282 |
});
|
282 |
});
|
| 283 |
}
|
283 |
}
|