From 01ad1efae513004b1c7cafaa23e86b6c61953569 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Wed, 11 Jun 2003 01:37:16 +0000 Subject: [PATCH] Modified newquestion and editquestion to allow setting text type questions as mandatory. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@352 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/html.php | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/admin/html.php b/admin/html.php index cd8441c51d0..cff0c86f776 100644 --- a/admin/html.php +++ b/admin/html.php @@ -417,15 +417,6 @@ $newquestion .= "\t\tdocument.getElementById('OtherSelection').style.display = 'none';\n"; $newquestion .= "\t\tdocument.addnewquestion.other[1].checked = true;\n"; $newquestion .= "\t\t}\n"; - $newquestion .= "\tif (QuestionType == 'S' || QuestionType == 'T' || QuestionType == '')\n"; - $newquestion .= "\t\t{\n"; - $newquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = 'none';\n"; - $newquestion .= "\t\tdocument.editquestion.mandatory[1].checked=true;\n"; - $newquestion .= "\t\t}\n"; - $newquestion .= "\telse\n"; - $newquestion .= "\t\t{\n"; - $newquestion .= "\t\tdocument.getElementById('MandatorySelection').style.display = '';\n"; - $newquestion .= "\t\t}\n"; $newquestion .= "\t}\n"; $newquestion .= "\tOtherSelection('{$eqrow['type']}');\n"; $newquestion .= "-->\n"; @@ -491,7 +482,7 @@ $editquestion .= "\t\t\n"; $editquestion .= "\t\n"; - $editquestion .= "\t\n"; + $editquestion .= "\t\n"; $editquestion .= "\t\t$setfontMandatory?\n"; $editquestion .= "\t\t$setfont\n"; $editquestion .= "\t\t\tYes