$(function() {
	$('body').on('change', '.filter', function() {
		var originalFilter = $(this);
		$(originalFilter.attr('data-filter-container')).children('.filterable').each(function(index, filterable) {
			var filters = $('body').find(".filter[data-filter-container='" + originalFilter.attr('data-filter-container') + "']");
			var hide = false;
			$.each(filters, function(i, element) {
				var filter = $(element);
				var filterVal = $(filterable).attr('data-' + $(filter).attr('data-filter')).toLowerCase();
				if (filter.is('input')) {
					if (filterVal.indexOf(filter.val().toLowerCase()) === -1 && filter.val() !== '') {
						hide = true;
					}
				}else if (filter.is('select')) {
					if (filter.children(':selected').is('option[data-filter-ignore]')) {
						return;
					}
					if (filter.children(':selected').is('option[data-filter-value]')) {
						if (filterVal !== filter.children(':selected').attr('data-filter-value').toLowerCase()) {
							hide = true;
						}
					}else {
						if (filterVal !== filter.children(':selected').html().toLowerCase()) {
							hide = true;
						}
					}
				}
			});
			if (hide) $(filterable).fadeOut();
			else $(filterable).fadeIn();
		});
	});
	
	$('body').on('click', '.reset-filter', function() {
		$('.filter').each(function(index, element) {
			if ($(element).is('input')) {
				$(element).val('');
			}else if ($(element).is('select')) {
				$(element).prop('selectedIndex', 0);
			}
		});
		$('.filterable').fadeIn();
	});
});
@@ -1158,16 +1158,23 @@
  (hide) 
+%7B%0D%0A%09%09%09%09
 $(filter
@@ -1194,21 +1194,29 @@
 ();%0D%0A%09%09%09
+%7D
 else 
+%7B%0D%0A%09%09%09%09
 $(filter
@@ -1232,16 +1232,22 @@
 eIn();%0D%0A
+%09%09%09%7D%0D%0A
 %09%09%7D);%0D%0A%09

Beautify the code