Subversion Repositories SmartDukaan

Rev

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

Rev 15015 Rev 15019
Line 544... Line 544...
544
	}	
544
	}	
545
});
545
});
546
$(document).on('click','#showallbrands',function(){	
546
$(document).on('click','#showallbrands',function(){	
547
	$('.hidden').removeClass('hidden');
547
	$('.hidden').removeClass('hidden');
548
	$(this).hide();
548
	$(this).hide();
-
 
549
});
-
 
550
$(document).on('input','#brandfilter',function(){	
-
 
551
	$('.brand').addClass('hidden');
-
 
552
	$('#showallbrands').hide();
-
 
553
	var that = $(this);
-
 
554
	$('li.brand').filter(function() { 
-
 
555
	  return $(this).data("brand").toLowerCase().indexOf($(that).val().toLowerCase()) != -1;
-
 
556
	}).removeClass('hidden','slow');
549
});
557
});
550
558