MDL-39422 course: prevent module names longer 255 chars

To prevent ugly DB errors.
This commit is contained in:
Dan Poltawski 2013-04-30 16:48:53 +01:00
parent cf5a3296c4
commit 4fb3df32ac

View File

@ -517,7 +517,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 />')