Subversion Repositories SmartDukaan

Rev

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

Rev 17129 Rev 17635
Line 46... Line 46...
46
	//check if paytm is active or not
46
	//check if paytm is active or not
47
	var homeShop18active = getCookie('homeshop18',1);
47
	var homeShop18active = getCookie('homeshop18',1);
48
	if(homeShop18active && homeShop18active == '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');
54
		showhomeShop18Popup(url);
54
		showhomeShop18Popup(url);
55
	}
55
	}
56
}
56
}
Line 815... Line 815...
815
	ga('send', 'event', 'filter', 'brand', 'clearfilters');
815
	ga('send', 'event', 'filter', 'brand', 'clearfilters');
816
	pma.send('filters','brands','clearfilters',me);
816
	pma.send('filters','brands','clearfilters',me);
817
	var postdata = {'user_id':me,'type':'clear'};
817
	var postdata = {'user_id':me,'type':'clear'};
818
	$('#loadingModal').modal('show');
818
	$('#loadingModal').modal('show');
819
	$.post("/user_filters/add", postdata, function( data ) {		
819
	$.post("/user_filters/add", postdata, function( data ) {		
820
	  	document.location.reload();
820
	  	// document.location.reload();
-
 
821
	  	window.location.replace(window.location.href.split('?')[0]);
821
	});	
822
	});	
822
});
823
});
823
function selectChosenBrands(){
824
function selectChosenBrands(){
824
	var brandschosen = decodeURIComponent(getCookie('brandschosen',true));
825
	var brandschosen = decodeURIComponent(getCookie('brandschosen',true));
825
	if(brandschosen && brandschosen.length>0){
826
	if(brandschosen && brandschosen.length>0){