MDL-20636 Merge vle/master into ouqe2
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 2 Mar 2011 17:34:18 +0000 (17:34 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 2 Mar 2011 17:34:18 +0000 (17:34 +0000)
Conflicts:
mod/quiz/locallib.php
mod/quiz/report/overview/overview_table.php
mod/quiz/report/overview/report.php
mod/quiz/report/responses/report.php
question/type/random/questiontype.php

1  2 
lib/adminlib.php
lib/moodlelib.php
mod/quiz/backup/moodle2/backup_quiz_stepslib.php
mod/quiz/backup/moodle2/restore_quiz_stepslib.php
mod/quiz/locallib.php
question/format/gift/simpletest/testgiftformat.php
question/qengine.js
question/type/numerical/questiontype.php
question/type/random/backup/moodle2/restore_qtype_random_plugin.class.php

Simple merge
Simple merge
@@@ -1133,9 -1000,9 +1133,9 @@@ function quiz_get_slot_for_question($qu
  /**
   * Sends confirmation email to the student taking the course
   *
 - * @param stdClass $a associative array of replaceable fields for the templates
 + * @param object $a associative array of replaceable fields for the templates
   *
-  * @return bool|string result of events_triger
+  * @return bool
   */
  function quiz_send_confirmation($a) {
  
   * Sends notification messages to the interested parties that assign the role capability
   *
   * @param object $recipient user object of the intended recipient
 - * @param stdClass $a associative array of replaceable fields for the templates
 + * @param object $a associative array of replaceable fields for the templates
   *
-  * @return bool|string result of events_triger()
+  * @return bool
   */
  function quiz_send_notification($recipient, $a) {
  
@@@ -149,12 -13,9 +149,12 @@@ M.core_question_engine.init_submit_butt
   */
  M.core_question_engine.init_form = function(Y, form) {
      Y.one(form).setAttribute('autocomplete', 'off');
 +
 +    Y.on('submit', M.core_question_engine.prevent_repeat_submission, form, form, Y);
 +
      Y.on('key', function (e) {
          if (!e.target.test('a') && !e.target.test('input[type=submit]') &&
-                 !e.target.test('input[type=img]')) {
+                 !e.target.test('input[type=img]') && !e.target.test('textarea')) {
              e.preventDefault();
          }
      }, form, 'press:13');