Added missing groupToEditSurvey Survey table field to upgrade script

Reduced YUI footprint (load -min and combined js/css files where possible)
Updated surveyQuestion template and associated js/css to not use divs with ids that clash with wg page header and footer
This commit is contained in:
Patrick Donelan 2008-11-21 06:23:28 +00:00
parent 36d4013dff
commit cf96ad484a
5 changed files with 4 additions and 3 deletions

View file

@ -442,6 +442,7 @@ sub _addSurveyTables{
$session->db->write("
CREATE TABLE `Survey` (
`groupToTakeSurvey` char(22) character set utf8 collate utf8_bin NOT NULL default '2',
`groupToEditSurvey` char(22) character set utf8 collate utf8_bin NOT NULL default '3',
`groupToViewReports` char(22) character set utf8 collate utf8_bin NOT NULL default '3',
`responseTemplateId` char(22) character set utf8 collate utf8_bin NOT NULL,
`overviewTemplateId` char(22) character set utf8 collate utf8_bin NOT NULL,

View file

@ -588,7 +588,7 @@ sub www_takeSurvey {
}
};
return $self->session->style->process($out,$self->getValue("styleTemplateId"));
return $self->session->style->process($out,$self->get("styleTemplateId"));
}
#handles questions that were submitted

View file

@ -52,7 +52,7 @@ Survey.Form = new function() {
span.innerHTML = "<input type=button id='showQuestionsButton' value='Continue'>";
span.style.display = 'block';
document.getElementById('header').appendChild(span);
document.getElementById('survey-header').appendChild(span);
YAHOO.util.Event.addListener("showQuestionsButton", "click",
function(){
document.getElementById('showQuestionsButton').style.display = 'none';

View file

@ -3,7 +3,7 @@ body {
background-repeat: repeat-y;
background-position: 0px 0px;
}
.header {
.survey-header {
width: 80%;
height: 20px;
margin-left: 80px;