Subversion Repositories SmartDukaan

Rev

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

Rev 17703 Rev 17707
Line 883... Line 883...
883
	var that = $(this);
883
	var that = $(this);
884
	$('li.brand').filter(function() { 
884
	$('li.brand').filter(function() { 
885
	  return $(this).data("brand").toLowerCase().indexOf($(that).val().toLowerCase()) != -1;
885
	  return $(this).data("brand").toLowerCase().indexOf($(that).val().toLowerCase()) != -1;
886
	}).removeClass('hidden','slow');
886
	}).removeClass('hidden','slow');
887
});
887
});
-
 
888
 
-
 
889
$(document).on('input','#subcatfilter',function(){	
-
 
890
	$('.subcategory').addClass('hidden');
-
 
891
	$('#showallbrands').hide();
-
 
892
	var that = $(this);
-
 
893
	$('li.subcategory').filter(function() { 
-
 
894
	  return $(this).data("brand").toLowerCase().indexOf($(that).val().toLowerCase()) != -1;
-
 
895
	}).removeClass('hidden','slow');
-
 
896
});
-
 
897
 
-
 
898
 
888
$(document).on('click','.filterbrand',function(){
899
$(document).on('click','.filterbrand',function(){
889
	var clicked = $(this).parent().parent();
900
	var clicked = $(this).parent().parent();
890
	// all the LIs above the clicked one
901
	// all the LIs above the clicked one
891
	var previousAll = clicked.prevAll();
902
	var previousAll = clicked.prevAll();
892
 
903
 
Line 1067... Line 1078...
1067
	});
1078
	});
1068
});
1079
});
1069
 
1080
 
1070
$(document).on('click','.selectsubcat',function(e){
1081
$(document).on('click','.selectsubcat',function(e){
1071
	e.preventDefault();
1082
	e.preventDefault();
-
 
1083
	$('.clearfilters').click();
1072
	var brands = $(this).data('id');
1084
	var brands = $(this).data('id');
1073
	var brandname = $(this).html();
1085
	var brandname = $(this).html();
1074
	console.log(brandname);
1086
	console.log(brandname);
1075
	
1087
	
1076
	setCookie('subcategorieschosen', brands, 1, true);
1088
	setCookie('subcategorieschosen', brands, 1, true);