# HG changeset patch # User Sylvain Thénault # Date 1310031255 -7200 # Node ID b837c1ca5009b8897d19eddac9f18845fceaf9b7 # Parent 56300bec75f88b1f2b0ec97cfb841054d5f7ef75 [facet slider] quote attribute value, else may break with earlier jquery diff -r 56300bec75f8 -r b837c1ca5009 web/facet.py --- a/web/facet.py Thu Jul 07 11:34:05 2011 +0200 +++ b/web/facet.py Thu Jul 07 11:34:15 2011 +0200 @@ -1362,13 +1362,13 @@ slide: function(event, ui) { jQuery('#%(sliderid)s_inf').html(_formatter(ui.values[0])); jQuery('#%(sliderid)s_sup').html(_formatter(ui.values[1])); - jQuery('input[name=%(facetname)s_inf]').val(ui.values[0]); - jQuery('input[name=%(facetname)s_sup]').val(ui.values[1]); + jQuery('input[name="%(facetname)s_inf"]').val(ui.values[0]); + jQuery('input[name="%(facetname)s_sup"]').val(ui.values[1]); } }); // use JS formatter to format value on page load - jQuery('#%(sliderid)s_inf').html(_formatter(jQuery('input[name=%(facetname)s_inf]').val())); - jQuery('#%(sliderid)s_sup').html(_formatter(jQuery('input[name=%(facetname)s_sup]').val())); + jQuery('#%(sliderid)s_inf').html(_formatter(jQuery('input[name="%(facetname)s_inf"]').val())); + jQuery('#%(sliderid)s_sup').html(_formatter(jQuery('input[name="%(facetname)s_sup"]').val())); ''' #'# make emacs happier def __init__(self, facet, minvalue, maxvalue):