Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-39422-24' of git://github.com/danpoltawski/moodle i…

…nto MOODLE_24_STABLE
  • Loading branch information...
commit be9d851c07b8637e42e704d241bd7260b4f47e35 2 parents eecd7b4 + 41b2eb8
@samhemelryk samhemelryk authored
View
3  course/yui/toolboxes/toolboxes.js
@@ -510,7 +510,8 @@ YUI.add('moodle-course-toolboxes', function(Y) {
'name' : 'title',
'value' : titletext,
'autocomplete' : 'off',
- 'aria-describedby' : 'id_editinstructions'
+ 'aria-describedby' : 'id_editinstructions',
+ 'maxLength' : '255'
})
.addClass('titleeditor');
var editform = Y.Node.create('<form />')
View
1  mod/assign/mod_form.php
@@ -57,6 +57,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true, get_string('description', 'assign'));
View
1  mod/assignment/mod_form.php
@@ -45,6 +45,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true, get_string('description', 'assignment'));
View
1  mod/book/mod_form.php
@@ -45,6 +45,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor($config->requiremodintro, get_string('moduleintro'));
$alloptions = book_get_numbering_types();
View
1  mod/chat/mod_form.php
@@ -22,6 +22,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true, get_string('chatintro', 'chat'));
View
1  mod/choice/mod_form.php
@@ -22,6 +22,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true, get_string('chatintro', 'chat'));
View
1  mod/data/mod_form.php
@@ -22,6 +22,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true, get_string('intro', 'data'));
View
1  mod/feedback/mod_form.php
@@ -44,6 +44,7 @@ public function definition() {
$mform->addElement('text', 'name', get_string('name', 'feedback'), array('size'=>'64'));
$mform->setType('name', PARAM_TEXT);
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true, get_string('description', 'feedback'));
View
1  mod/folder/mod_form.php
@@ -44,6 +44,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor($config->requiremodintro);
//-------------------------------------------------------
View
1  mod/glossary/mod_form.php
@@ -22,6 +22,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor(true);
View
1  mod/imscp/mod_form.php
@@ -45,6 +45,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor($config->requiremodintro);
//-------------------------------------------------------
View
1  mod/lesson/mod_form.php
@@ -89,6 +89,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
// Create a text box that can be enabled/disabled for lesson time limit
$timedgrp = array();
View
1  mod/lti/mod_form.php
@@ -67,6 +67,7 @@ public function definition() {
$mform->addElement('text', 'name', get_string('basicltiname', 'lti'), array('size'=>'64'));
$mform->setType('name', PARAM_TEXT);
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
// Adding the optional "intro" and "introformat" pair of fields
$this->add_intro_editor(false, get_string('basicltiintro', 'lti'));
$mform->setAdvanced('introeditor');
View
1  mod/page/mod_form.php
@@ -47,6 +47,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor($config->requiremodintro);
//-------------------------------------------------------
View
1  mod/quiz/mod_form.php
@@ -69,6 +69,7 @@ protected function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
// Introduction.
$this->add_intro_editor(false, get_string('introduction', 'quiz'));
View
1  mod/resource/mod_form.php
@@ -55,6 +55,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor($config->requiremodintro);
//-------------------------------------------------------
View
1  mod/scorm/mod_form.php
@@ -43,6 +43,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
// Summary
$this->add_intro_editor(true);
View
1  mod/url/mod_form.php
@@ -45,6 +45,7 @@ function definition() {
$mform->setType('name', PARAM_CLEANHTML);
}
$mform->addRule('name', null, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$this->add_intro_editor($config->requiremodintro);
//-------------------------------------------------------
View
1  mod/wiki/mod_form.php
@@ -53,6 +53,7 @@ protected function definition() {
$mform->addElement('text', 'name', get_string('wikiname', 'wiki'), array('size' => '64'));
$mform->setType('name', PARAM_TEXT);
$mform->addRule('name', $required, 'required', null, 'client');
+ $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
// Adding the optional "intro" and "introformat" pair of fields
$this->add_intro_editor(true, get_string('wikiintro', 'wiki'));
Please sign in to comment.
Something went wrong with that request. Please try again.