web/facet.py
changeset 7627 b837c1ca5009
parent 7626 56300bec75f8
child 7629 58f11f7dad68
equal deleted inserted replaced
7626:56300bec75f8 7627:b837c1ca5009
  1360            buildRQL.apply(null, cw.evalJSON(form.attr('cubicweb:facetargs')));
  1360            buildRQL.apply(null, cw.evalJSON(form.attr('cubicweb:facetargs')));
  1361         },
  1361         },
  1362         slide: function(event, ui) {
  1362         slide: function(event, ui) {
  1363             jQuery('#%(sliderid)s_inf').html(_formatter(ui.values[0]));
  1363             jQuery('#%(sliderid)s_inf').html(_formatter(ui.values[0]));
  1364             jQuery('#%(sliderid)s_sup').html(_formatter(ui.values[1]));
  1364             jQuery('#%(sliderid)s_sup').html(_formatter(ui.values[1]));
  1365             jQuery('input[name=%(facetname)s_inf]').val(ui.values[0]);
  1365             jQuery('input[name="%(facetname)s_inf"]').val(ui.values[0]);
  1366             jQuery('input[name=%(facetname)s_sup]').val(ui.values[1]);
  1366             jQuery('input[name="%(facetname)s_sup"]').val(ui.values[1]);
  1367         }
  1367         }
  1368    });
  1368    });
  1369    // use JS formatter to format value on page load
  1369    // use JS formatter to format value on page load
  1370    jQuery('#%(sliderid)s_inf').html(_formatter(jQuery('input[name=%(facetname)s_inf]').val()));
  1370    jQuery('#%(sliderid)s_inf').html(_formatter(jQuery('input[name="%(facetname)s_inf"]').val()));
  1371    jQuery('#%(sliderid)s_sup').html(_formatter(jQuery('input[name=%(facetname)s_sup]').val()));
  1371    jQuery('#%(sliderid)s_sup').html(_formatter(jQuery('input[name="%(facetname)s_sup"]').val()));
  1372 '''
  1372 '''
  1373     #'# make emacs happier
  1373     #'# make emacs happier
  1374     def __init__(self, facet, minvalue, maxvalue):
  1374     def __init__(self, facet, minvalue, maxvalue):
  1375         self.facet = facet
  1375         self.facet = facet
  1376         self.minvalue = minvalue
  1376         self.minvalue = minvalue