From 73ed30f62d8bdfe67282189355d44563c50e048c Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 2 May 2005 23:05:36 +0000 Subject: [PATCH] fixups for IE git-svn-id: svn://svn.open-ils.org/ILS/trunk@612 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/javascript/widgets/Survey.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/javascript/widgets/Survey.js b/Open-ILS/src/javascript/widgets/Survey.js index cacb224dab..f00abd309a 100644 --- a/Open-ILS/src/javascript/widgets/Survey.js +++ b/Open-ILS/src/javascript/widgets/Survey.js @@ -49,9 +49,19 @@ function SurveyAnswer(answer,poll) { this.answer = answer; if(poll) { - this.node = createAppElement("input"); - this.node.setAttribute("type", "radio"); - this.node.value = answer.id(); + + if(IE) { + this.node = createAppElement( + "" ); + } else { + + this.node = createAppElement("input"); + this.node.type = "radio"; + this.node.setAttribute("type", "radio"); + this.node.setAttribute("name", "survey_answer_" + answer.id()); + this.node.setAttribute("value", answer.id()); + } + } else { this.node = new Option( answer.answer(), answer.id() ); } -- 2.43.2