Subversion Repositories SmartDukaan

Rev

Rev 13270 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13270 Rev 13489
Line 227... Line 227...
227
					if (response == 'RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL') {
227
					if (response == 'RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL') {
228
						reload();
228
						reload();
229
					}
229
					}
230
					incrementCounter();
230
					incrementCounter();
231
					if ($('#countdown').is(':visible')) {
231
					if ($('#countdown').is(':visible')) {
232
						if (callCounter < 8) {
232
						if (callCounter < 5) {
233
							window.setTimeout(checkUnknownTransactions, 5000);
233
							window.setTimeout(checkUnknownTransactions, 10000);
234
						}
234
						}
235
					}
235
					}
236
				},
236
				},
237
				error: function() {
237
				error: function() {
238
					incrementCounter();
238
					incrementCounter();
239
					if ($('#countdown').is(':visible')) {
239
					if ($('#countdown').is(':visible')) {
240
						if (callCounter < 8) {
240
						if (callCounter < 5) {
241
							window.setTimeout(checkUnknownTransactions, 5000);
241
							window.setTimeout(checkUnknownTransactions, 10000);
242
						}
242
						}
243
					}
243
					}
244
				}
244
				}
245
			});
245
			});
246
		}
246
		}