follow up changes in search_category_on_select
This commit is contained in:
		
							parent
							
								
									2e8ab34d76
								
							
						
					
					
						commit
						074521fd8a
					
				| @ -4,9 +4,7 @@ $(document).ready(function() { | |||||||
|             $('#categories input[type="checkbox"]').each(function(i, checkbox) { |             $('#categories input[type="checkbox"]').each(function(i, checkbox) { | ||||||
|                 $(checkbox).prop('checked', false); |                 $(checkbox).prop('checked', false); | ||||||
|             }); |             }); | ||||||
|             $('#categories label').removeClass('btn-primary').removeClass('active').addClass('btn-default'); |             $(document.getElementById($(this).attr("for"))).prop('checked', true); | ||||||
|             $(this).removeClass('btn-default').addClass('btn-primary').addClass('active'); |  | ||||||
|             $($(this).children()[0]).prop('checked', 'checked'); |  | ||||||
|             if($('#q').val()) { |             if($('#q').val()) { | ||||||
|                 $('#search_form').submit(); |                 $('#search_form').submit(); | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Noemi Vanyi
						Noemi Vanyi