Fix posting public comments as private in student proposals review.html template.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/templates/soc/student_proposal/review.html Sun Apr 05 19:43:26 2009 +0000
+++ b/app/soc/templates/soc/student_proposal/review.html Sun Apr 05 22:51:54 2009 +0000
@@ -148,7 +148,7 @@
{% comment %}
TODO(pawel.solyga): Put this javascript into separate file
{% endcomment %}
-<script type="text/javascript"/>
+<script type="text/javascript">
function commentType() {
var commentTypeSelector = document.getElementById("commenttypeselector");
var type = commentTypeSelector[commentTypeSelector.options.selectedIndex].value;
@@ -166,7 +166,7 @@
commentPublic.style.display = "";
commentPrivate.style.display = "none";
commentAdmin.style.display = "none";
- publicCheckbox.value = true;
+ publicCheckbox.checked = true;
cssString += "public";
cssRemoveString += "private";
break;
@@ -174,7 +174,7 @@
commentPublic.style.display = "";
commentPrivate.style.display = "";
commentAdmin.style.display = "none";
- publicCheckbox.value = false;
+ publicCheckbox.checked = false;
cssString += "private";
cssRemoveString += "public";
break;
@@ -182,7 +182,7 @@
commentPublic.style.display = "";
commentPrivate.style.display = "";
commentAdmin.style.display = "";
- publicCheckbox.value = false;
+ publicCheckbox.checked = false;
cssString += "private";
cssRemoveString += "public";
break;