# HG changeset patch # User Mario Ferraro # Date 1246729738 -3600 # Node ID 7ef468836f6ef0f46b12cc67c54980776b53f9aa # Parent 1e44d71c0e3ecb35b6f00e3b8bd653578d9997ce Fixes bug when option name contains double quotes. diff -r 1e44d71c0e3e -r 7ef468836f6e app/soc/content/js/survey-edit-090703.js --- a/app/soc/content/js/survey-edit-090703.js Sat Jul 04 18:53:37 2009 +0200 +++ b/app/soc/content/js/survey-edit-090703.js Sat Jul 04 18:48:58 2009 +0100 @@ -489,7 +489,8 @@ '', '', name, '', '', '' + '__field" name="', id_, '__field" value="', + name.replace(/\"/g,'"'), '" >', '' ].join("")); ol.append( @@ -702,7 +703,7 @@ '', oname, '', '', '' + '__field" value="', oname.replace(/\"/g,'"'), '" >', '' ].join("")); ol.append(option_html.prepend( del_li.join(option_html.attr('id'))));