Subversion Repositories SmartDukaan

Rev

Rev 16471 | Rev 16495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16471 Rev 16485
Line 20... Line 20...
20
function showPaytmPopup(url){
20
function showPaytmPopup(url){
21
	$('#paytmUrl').prop('href',url);
21
	$('#paytmUrl').prop('href',url);
22
	$('#paytmModal').modal('show');
22
	$('#paytmModal').modal('show');
23
	return;
23
	return;
24
};
24
};
-
 
25
function showPaytmHelpPopup() {
-
 
26
	$('#loadingModal').modal('hide');
-
 
27
	$('#paytmHelpModal').modal('show');
-
 
28
}
-
 
29
function redirectToPaytm(url){
-
 
30
	$('#paytmHelpModal').modal('hide');
-
 
31
	//check if paytm is active or not
-
 
32
	var paytmactive = getCookie('paytmActive',1);
-
 
33
	if(paytmactive && paytmactive == 'true'){
-
 
34
		response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
-
 
35
		document.location = url;	
-
 
36
		pma.send('apk','paytm','active',me,null);
-
 
37
	}else{
-
 
38
		pma.send('apk','paytm','inactive',me,null);
-
 
39
		$('#loadingModal').modal('hide');
-
 
40
		showPaytmPopup(url);
-
 
41
	}
-
 
42
}
25
$(function(){	
43
$(function(){	
26
	if($('.scroll > .card').length>0) {
44
	if($('.scroll > .card').length>0) {
27
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
45
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
28
		if(typeof noscrolling == 'undefined') {
46
		if(typeof noscrolling == 'undefined') {
29
			$('.scroll').jscroll({
47
			$('.scroll').jscroll({
Line 309... Line 327...
309
							pma.send('apk','shopclues','inactive',me,null);
327
							pma.send('apk','shopclues','inactive',me,null);
310
							$('#loadingModal').modal('hide');
328
							$('#loadingModal').modal('hide');
311
							showShopcluesPopup(response.url);
329
							showShopcluesPopup(response.url);
312
						}
330
						}
313
				  	} else if(store == 6 ) {
331
				  	} else if(store == 6 ) {
314
					 	//check if paytm is active or not
332
				  		//display paytm help
315
						var paytmactive = getCookie('paytmActive',1);
-
 
316
						if(paytmactive && paytmactive == 'true'){
-
 
317
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
-
 
318
							document.location = response.url;	
-
 
319
							pma.send('apk','paytm','active',me,null);
-
 
320
						}else{
-
 
321
							pma.send('apk','paytm','inactive',me,null);
-
 
322
							$('#loadingModal').modal('hide');
333
				  		showPaytmHelpPopup();
323
							showPaytmPopup(response.url);
334
				  		setTimeout(function(){redirectToPaytm(response.url);},3000);					 	
324
						}
-
 
325
					} else if (store == 3 || store == 2) {
335
					} else if (store == 3 || store == 2) {
326
						if (store == 2){
336
						if (store == 2){
327
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
337
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
328
						}
338
						}
329
						if(response.showmessage == 1) {
339
						if(response.showmessage == 1) {