# HG changeset patch # User James Levy # Date 1246708397 -7200 # Node ID 8f29bfb9eb52637f15f04a9b09e6e450a1cf7345 # Parent 7df431ddcfd3124dcaf424aaf87a7146f7a24843 Survey editing/taking Javascript and CSS fixes. This patch adds some cosmetic changes and functional fixes: - UI now removes all of the field content when a field is deleted, - CSS tweaks, and jQuery hack to specialize comment CSS, - fixed JS path in take.html. Reviewed by: Pawel Solyga (with some small changes) diff -r 7df431ddcfd3 -r 8f29bfb9eb52 app/soc/content/css/soc-090627.css --- a/app/soc/content/css/soc-090627.css Sat Jul 04 12:07:27 2009 +0200 +++ b/app/soc/content/css/soc-090627.css Sat Jul 04 13:53:17 2009 +0200 @@ -714,7 +714,8 @@ } div #survey_widget a.delete { - margin: 0 7px; + float:left; + margin:-1px 7px; } div #survey_widget th label { @@ -750,6 +751,28 @@ max-width:700px; } +div #survey_widget td { + display: block; +} + +div #survey_widget label { + font-size: 18px; +} + +div #survey_widget fieldset select { + display:block; +} + +div #survey_widget fieldset textarea, +div #survey_widget fieldset input { + margin: 10px; +} + +div #survey_widget td > fieldset > label { + font-size: 11px; +} + + #dialog { font-size: 62.5%; } diff -r 7df431ddcfd3 -r 8f29bfb9eb52 app/soc/content/js/survey-edit-090703.js --- a/app/soc/content/js/survey-edit-090703.js Sat Jul 04 12:07:27 2009 +0200 +++ b/app/soc/content/js/survey-edit-090703.js Sat Jul 04 13:53:17 2009 +0200 @@ -192,7 +192,8 @@ }); edit_form.append(deleted_input); } - this_field.remove(); + this_field.next('tr').remove().end() + .remove(); } } ); @@ -572,13 +573,13 @@ '" name="required_for_', field_name, '">', '', - '
', '', '
', + 'False', '', "", "" ].join(""); @@ -592,13 +593,13 @@ '" name="required_for_', field_name, '">', '', - '
', '', '
', + 'False', '', "