forked from EloquentStudio/filter.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.js
More file actions
27 lines (23 loc) · 690 Bytes
/
Copy pathbasic.js
File metadata and controls
27 lines (23 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
jQuery(document).ready(function($) {
$('#price_filter').val('0-500');
$("#price_slider").slider({
range:true,
min: 0,
max: 500,
values:[0, 500],
step: 5,
slide: function(event, ui) {
$("#price_range_label").html('$' + ui.values[ 0 ] + ' - $' + ui.values[ 1 ] );
$('#price_filter').val(ui.values[0] + '-' + ui.values[1]).trigger('change');
}
});
$('#status :checkbox').prop('checked', true);
FilterJS(services, "#service_list", {
template: '#template',
criterias:[
{field: 'amount', ele: '#price_filter', type: 'range'},
{field: 'status', ele: '#status :checkbox'}
],
search: { ele: '#search_box' }
});
});