Subversion Repositories SmartDukaan

Rev

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

Rev 17006 Rev 17017
Line 42... Line 42...
42
}
42
}
43
 
43
 
44
function redirectTohomeShop18(url){
44
function redirectTohomeShop18(url){
45
	url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
45
	url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
46
	//check if paytm is active or not
46
	//check if paytm is active or not
47
	var paytmactive = getCookie('homeShop18',1);
47
	var homeShop18active = getCookie('homeshop18',1);
48
	if(paytmactive && paytmactive == 'true'){		
48
	if(homeShop18active && homeShop18active == 'true'){		
49
		document.location = url;	
49
		document.location = url;	
50
		pma.send('apk','homeShop18','active',me,null);
50
		pma.send('apk','homeShop18','active',me,null);
51
	}else{
51
	}else{
52
		pma.send('apk','homeShop18','inactive',me,null);
52
		pma.send('apk','homeShop18','inactive',me,null);
53
		$('#loadingModal').modal('hide');
53
		$('#loadingModal').modal('hide');
Line 361... Line 361...
361
						}else{
361
						}else{
362
							pma.send('apk','shopclues','inactive',me,null);
362
							pma.send('apk','shopclues','inactive',me,null);
363
							$('#loadingModal').modal('hide');
363
							$('#loadingModal').modal('hide');
364
							showShopcluesPopup(response.url);
364
							showShopcluesPopup(response.url);
365
						}
365
						}
366
				  	} else if(store == 6 ) {
366
				  	} else if(store == 7 ) {
367
				  		//display paytm help
367
				  		//display paytm help
368
				  		if(needToDisplayPaytmPopup(me)){
368
				  		if(needToDisplayPaytmPopup(me)){
369
				  			showPaytmHelpPopup();
369
				  			showPaytmHelpPopup();
370
					  		$('#oktatabyebye').on('click',function(){
370
					  		$('#oktatabyebye').on('click',function(){
371
					  			redirectToPaytm(response.url);	
371
					  			redirectToPaytm(response.url);	
Line 374... Line 374...
374
				  			redirectToPaytm(response.url);	
374
				  			redirectToPaytm(response.url);	
375
				  		}
375
				  		}
376
 
376
 
377
					} 
377
					} 
378
					  //for homeshop 18
378
					  //for homeshop 18
379
				  	  else if(store == 7)
379
				  	  else if(store == 6)
380
				  	  {
380
				  	  {
381
				  	  	
-
 
382
				  			redirectTohomeshop18(response.url);	
381
				  			redirectTohomeShop18(response.url);	
383
				  		
382
				  		
384
				  	  }
383
				  	  }
385
					  else if (store == 3 || store == 2) {
384
					  else if (store == 3 || store == 2) {
386
						if (store == 2){
385
						if (store == 2){
387
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
386
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);