Fix posting public comments as private in student proposals review.html template.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 05 Apr 2009 22:51:54 +0000
changeset 2088 353d73af0ba6
parent 2087 9bdfbf0ad03c
child 2089 b8a9691da6e7
Fix posting public comments as private in student proposals review.html template. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/templates/soc/student_proposal/review.html
--- 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;