[facet slider] quote attribute value, else may break with earlier jquery
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 07 Jul 2011 11:34:15 +0200
changeset 7627 b837c1ca5009
parent 7626 56300bec75f8
child 7628 56022cf13887
[facet slider] quote attribute value, else may break with earlier jquery
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):