[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 2 M.mod_survey = {}; 3 4 M.mod_survey.init = function(Y) { 5 if (document.getElementById('surveyform')) { 6 var surveyform = document.getElementById('surveyform'); 7 Y.YUI2.util.Event.addListener('surveyform', "submit", function(e) { 8 var error = false; 9 if (document.getElementById('surveyform')) { 10 var surveyform = document.getElementById('surveyform'); 11 for (var i=0; i < surveycheck.questions.length; i++) { 12 var tempquestion = surveycheck.questions[i]; 13 if (surveyform[tempquestion['question']][tempquestion['default']].checked) { 14 error = true; 15 } 16 } 17 } 18 if (error) { 19 alert(M.util.get_string('questionsnotanswered', 'survey')); 20 Y.YUI2.util.Event.preventDefault(e); 21 return false; 22 } else { 23 return true; 24 } 25 }); 26 } 27 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |