mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
publication MDL-19315 add Sam's javascript select for subject field
This commit is contained in:
parent
882e66febb
commit
b46a984259
@ -124,7 +124,7 @@ class course_publication_form extends moodleform {
|
||||
$defaultsummary = $publishedcourse['description'];
|
||||
$defaultlanguage = $publishedcourse['language'];
|
||||
$defaultpublishername = $publishedcourse['publishername'];
|
||||
$defaultpublisheremail = $publishedcourse['defaultpublisheremail'];
|
||||
$defaultpublisheremail = $publishedcourse['publisheremail'];
|
||||
$defaultcontributornames = $publishedcourse['contributornames'];
|
||||
$defaultcoverage = $publishedcourse['coverage'];
|
||||
$defaultcreatorname = $publishedcourse['creatorname'];
|
||||
@ -265,6 +265,7 @@ class course_publication_form extends moodleform {
|
||||
unset($options);
|
||||
$mform->addHelpButton('subject', 'subject', 'hub');
|
||||
$mform->setDefault('subject', $defaultsubject);
|
||||
$this->init_javascript_enhancement('subject', 'smartselect', array('selectablecategories' => false, 'mode'=>'compact'));
|
||||
|
||||
$options = array();
|
||||
$options[AUDIENCE_EDUCATORS] = get_string('audienceeducators', 'hub');
|
||||
|
Loading…
x
Reference in New Issue
Block a user