Subversion Repositories SmartDukaan

Rev

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

Rev 16395 Rev 16397
Line 15... Line 15...
15
function showShopcluesPopup(url){
15
function showShopcluesPopup(url){
16
	$('#shopcluesUrl').prop('href',url);
16
	$('#shopcluesUrl').prop('href',url);
17
	$('#shopcluesModal').modal('show');
17
	$('#shopcluesModal').modal('show');
18
	return;
18
	return;
19
};
19
};
-
 
20
function showPaytmPopup(url){
-
 
21
	$('#paytmUrl').prop('href',url);
-
 
22
	$('#paytmModal').modal('show');
-
 
23
	return;
-
 
24
};
20
$(function(){	
25
$(function(){	
21
	if($('.scroll > .card').length>0) {
26
	if($('.scroll > .card').length>0) {
22
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
27
		setTimeout(function(){ document.location.reload(); }, 1000*15*60);
23
		if(typeof noscrolling == 'undefined') {
28
		if(typeof noscrolling == 'undefined') {
24
			$('.scroll').jscroll({
29
			$('.scroll').jscroll({
Line 293... Line 298...
293
							pma.send('apk','shopclues','active',me,null);
298
							pma.send('apk','shopclues','active',me,null);
294
						}else{
299
						}else{
295
							pma.send('apk','shopclues','inactive',me,null);
300
							pma.send('apk','shopclues','inactive',me,null);
296
							$('#loadingModal').modal('hide');
301
							$('#loadingModal').modal('hide');
297
							showShopcluesPopup(response.url);
302
							showShopcluesPopup(response.url);
298
							// return;
-
 
299
						}
303
						}
300
				  	} 
304
				  	} else if(store == 6 ) {
-
 
305
					 	//check if paytm is active or not
-
 
306
						active = getCookie('paytmActive',1);
301
				  	/*else if(store == 1 ) {
307
						if(active && active == 'true'){
302
					 	url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
308
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
303
					 	document.location = url;
309
							document.location = response.url;	
-
 
310
							pma.send('apk','paytm','active',me,null);
-
 
311
						}else{
-
 
312
							pma.send('apk','paytm','inactive',me,null);
-
 
313
							$('#loadingModal').modal('hide');
-
 
314
							showPaytmPopup(response.url);
304
					} */
315
						}
305
					else if (store == 3 || store == 2) {
316
					} else if (store == 3 || store == 2) {
306
						if (store == 2){
317
						if (store == 2){
307
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
318
							response.url = 'http://mobilehotindia.com/r.html?'+Base64.encode(response.url);
308
						}
319
						}
309
						if(response.showmessage == 1) {
320
						if(response.showmessage == 1) {
310
							$('#loadingModal').modal('hide');
321
							$('#loadingModal').modal('hide');