Merge branch 'MDL-43232-master' of git://github.com/andrewnicols/moodle
authorSam Hemelryk <sam@moodle.com>
Mon, 9 Dec 2013 20:06:54 +0000 (09:06 +1300)
committerSam Hemelryk <sam@moodle.com>
Mon, 9 Dec 2013 20:06:54 +0000 (09:06 +1300)
1  2 
backup/util/ui/base_moodleform.class.php

@@@ -73,14 -73,6 +73,14 @@@ abstract class base_moodleform extends 
       */
      function __construct(base_ui_stage $uistage, $action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true) {
          $this->uistage = $uistage;
 +        // Add a class to the attributes to prevent the default collapsible behaviour.
 +        if (!$attributes) {
 +            $attributes = array();
 +        }
 +        $attributes['class'] = 'unresponsive';
 +        if (!isset($attributes['enctype'])) {
 +            $attributes['enctype'] = 'application/x-www-form-urlencoded'; // Enforce compatibility with our max_input_vars hack.
 +        }
          parent::__construct($action, $customdata, $method, $target, $attributes, $editable);
      }
      /**
          $config->yesLabel = get_string('confirmcancelyes', 'backup');
          $config->noLabel = get_string('confirmcancelno', 'backup');
          $config->closeButtonTitle = get_string('close', 'editor');
-         $PAGE->requires->yui_module('moodle-backup-confirmcancel', 'M.core_backup.watch_cancel_buttons', array($config));
+         $PAGE->requires->yui_module('moodle-backup-confirmcancel', 'M.core_backup.confirmcancel.watch_cancel_buttons', array($config));
  
          // Get list of module types on course.
          $modinfo = get_fast_modinfo($COURSE);