[svn r13226] Switched button onclick event handler for doQuit() rather than checkAnswers(which isn't sending anything to the server)

skala
Yannick Warnier 17 years ago
parent f4893e4cf8
commit b3f09e1700
  1. 6
      main/exercice/export/scorm/scorm_export.php

@ -146,7 +146,8 @@ class ScormAssessmentItem
addEvent(my_form,\'submit\',checkAnswers,false);
*/
var my_button = document.getElementById(\'dokeos_scorm_submit\');
addEvent(my_button,\'click\',checkAnswers,false);
addEvent(my_button,\'click\',doQuit,false);
//addEvent(my_button,\'click\',checkAnswers,false);
//addEvent(my_button,\'change\',checkAnswers,false);
addEvent(window,\'unload\',unloadPage,false);
}'."\n\n";
@ -448,7 +449,8 @@ class ScormSection
addEvent(my_form,\'submit\',checkAnswers,false);
*/
var my_button = document.getElementById(\'dokeos_scorm_submit\');
addEvent(my_button,\'click\',checkAnswers,false);
addEvent(my_button,\'click\',doQuit,false);
//addEvent(my_button,\'click\',checkAnswers,false);
//addEvent(my_button,\'change\',checkAnswers,false);
addEvent(window,\'unload\',unloadPage,false);
}'."\n";

Loading…
Cancel
Save