# HG changeset patch # User Sylvain Thénault # Date 1311004306 -7200 # Node ID 600b407ae5c074a8dae9618ee197252fa718dee5 # Parent 8644c2a065f0afbad4efe9fa6d42844ca3682d1b [preferences js] jquery 1.6 needs quote when querying attribute value diff -r 8644c2a065f0 -r 600b407ae5c0 web/data/cubicweb.preferences.js --- a/web/data/cubicweb.preferences.js Mon Jul 18 16:37:11 2011 +0200 +++ b/web/data/cubicweb.preferences.js Mon Jul 18 17:51:46 2011 +0200 @@ -104,7 +104,7 @@ unfreezeButtons = true; } else { input.removeClass('changed'); - jQuery("span[id=err-" + input.attr('id') + "]").remove(); + jQuery('span[id="err-' + input.attr('id') + '"]').remove(); } input.removeClass('error'); return unfreezeButtons; @@ -124,7 +124,7 @@ } else { prefsValues[name] = input.val(); } - jQuery(form).find('input[name=edits-' + name + ']').val(prefsValues[name]); + jQuery(form).find('input[name="edits-' + name + '"]').val(prefsValues[name]); }); }