equal
deleted
inserted
replaced
574 jQuery("#%(sliderid)s").slider({ |
574 jQuery("#%(sliderid)s").slider({ |
575 range: true, |
575 range: true, |
576 min: %(minvalue)s, |
576 min: %(minvalue)s, |
577 max: %(maxvalue)s, |
577 max: %(maxvalue)s, |
578 values: [%(minvalue)s, %(maxvalue)s], |
578 values: [%(minvalue)s, %(maxvalue)s], |
|
579 stop: function(event, ui) { // submit when the user stops sliding |
|
580 var form = $('#%(sliderid)s').closest('form'); |
|
581 buildRQL.apply(null, evalJSON(form.attr('cubicweb:facetargs'))); |
|
582 }, |
579 slide: function(event, ui) { |
583 slide: function(event, ui) { |
580 $('#%(sliderid)s_inf').html(ui.values[0]); |
584 $('#%(sliderid)s_inf').html(ui.values[0]); |
581 $('#%(sliderid)s_sup').html(ui.values[1]); |
585 $('#%(sliderid)s_sup').html(ui.values[1]); |
582 $('input[name=%(facetid)s_inf]').val(ui.values[0]); |
586 $('input[name=%(facetid)s_inf]').val(ui.values[0]); |
583 $('input[name=%(facetid)s_sup]').val(ui.values[1]); |
587 $('input[name=%(facetid)s_sup]').val(ui.values[1]); |
584 } |
588 } |
585 }); |
589 }); |
586 ''' |
590 ''' |
587 def __init__(self, facet, minvalue, maxvalue): |
591 def __init__(self, facet, minvalue, maxvalue): |
588 self.facet = facet |
592 self.facet = facet |