# HG changeset patch # User Daniel Diniz # Date 1246624503 -7200 # Node ID 2e096acc8720a0e86f62b9707b143b3d15eb7041 # Parent d612b48e6e121f0e35f6685e8fabb3979fcf34b2 Surveys can now have required questions and comments can be turned on/off. Storing comments is now working. However some issues arise when form errors occur, like missing context and the errors also trigger before a form has been submitted. Reviewed by: Lennard de Rijk diff -r d612b48e6e12 -r 2e096acc8720 app/soc/content/js/survey-edit-090627.js --- a/app/soc/content/js/survey-edit-090627.js Fri Jul 03 14:19:23 2009 +0200 +++ b/app/soc/content/js/survey-edit-090627.js Fri Jul 03 14:35:03 2009 +0200 @@ -565,11 +565,43 @@ // create the HTML for the field switch (button_id) { case "short_answer": - new_field = ""; + new_field = ["
\n", + '', + '
', '', + '
', + "", "
" + ].join(""); break; case "long_answer": - new_field = ["