Subversion Repositories SmartDukaan

Rev

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

Rev 17691 Rev 17703
Line 1050... Line 1050...
1050
$(document).on('click','.selectbrand',function(e){
1050
$(document).on('click','.selectbrand',function(e){
1051
	e.preventDefault();
1051
	e.preventDefault();
1052
	var brands = $(this).data('id');
1052
	var brands = $(this).data('id');
1053
	var brandname = $(this).html();
1053
	var brandname = $(this).html();
1054
	console.log(brandname);
1054
	console.log(brandname);
1055
	
1055
 
1056
	setCookie('brandschosen', brands, 1, true);
1056
	setCookie('brandschosen', brands, 1, true);
1057
	var url = $(this).data('href');
1057
	var url = $(this).data('href');
1058
	ga('send', 'event', 'selectbrand', 'brand', brandname);
1058
	ga('send', 'event', 'selectbrand', 'brand', brandname);
1059
	properties = {};
1059
	properties = {};
1060
	properties['brand'] = brandname;
1060
	properties['brand'] = brandname;
Line 1064... Line 1064...
1064
		$('#loadingModal').modal('hide');
1064
		$('#loadingModal').modal('hide');
1065
		$(this).addClass('activebrand');
1065
		$(this).addClass('activebrand');
1066
  		document.location = url+'&brands='+brands;
1066
  		document.location = url+'&brands='+brands;
1067
	});
1067
	});
1068
});
1068
});
-
 
1069
 
-
 
1070
$(document).on('click','.selectsubcat',function(e){
-
 
1071
	e.preventDefault();
-
 
1072
	var brands = $(this).data('id');
-
 
1073
	var brandname = $(this).html();
-
 
1074
	console.log(brandname);
-
 
1075
	
-
 
1076
	setCookie('subcategorieschosen', brands, 1, true);
-
 
1077
	var url = $(this).data('href');
-
 
1078
	// alert(url);
-
 
1079
	// ga('send', 'event', 'subcategorieschosen', 'brand', brandname);
-
 
1080
	document.location = url;
-
 
1081
	// properties = {};
-
 
1082
	// properties['brand'] = brandname;
-
 
1083
	// pma.send('filters','brands','selectbrand',me,properties);
-
 
1084
	// // var postdata = {'user_id':me,'type':'brand','filters':brandname};
-
 
1085
	// $.post( "/user_filters/add", postdata, function( data ) {
-
 
1086
	// 	$('#loadingModal').modal('hide');
-
 
1087
	// 	$(this).addClass('activebrand');
-
 
1088
 //  		document.location = url+'&brands='+brands;
-
 
1089
	// });
-
 
1090
});
-
 
1091
 
1069
$(document).on('click','.shownexttip',function(e){
1092
$(document).on('click','.shownexttip',function(e){
1070
	$(this).addClass('hidden').remove();
1093
	$(this).addClass('hidden').remove();
1071
	$('#firsttip').addClass('hidden').remove();
1094
	$('#firsttip').addClass('hidden').remove();
1072
	$('#secondtip').removeClass('hidden');
1095
	$('#secondtip').removeClass('hidden');
1073
	$('.gotit').removeClass('hidden');
1096
	$('.gotit').removeClass('hidden');