MDL-34356 JavaScript: Allow chooser dialogues to submit values for hidden elements
authorAndrew Nicols <andrew@nicols.co.uk>
Sat, 28 Dec 2013 03:35:48 +0000 (11:35 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Sat, 28 Dec 2013 03:35:52 +0000 (11:35 +0800)
commit80cd508669695967800e202c6797db129e9b0574
treecb8e1c88883ff25fbd71a25ac0cf59e88ef6d9df
parentbbb291b7b71f32345eec8d8d20848cb8f9de7150
MDL-34356 JavaScript: Allow chooser dialogues to submit values for hidden elements

When we submit the chooser dialogue, we disable the radio buttons used for
selection. Since browsers do not actually submit values for disabled
elements, we store the radio value in a hidden element which is not
disabled.

This commit abstracts this out of the activity chooser and into the generic
chooser dialogue such that other types of chooser dialogue may use it.
course/renderer.php
course/yui/build/moodle-course-modchooser/moodle-course-modchooser-debug.js
course/yui/build/moodle-course-modchooser/moodle-course-modchooser-min.js
course/yui/build/moodle-course-modchooser/moodle-course-modchooser.js
course/yui/src/modchooser/js/modchooser.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue-debug.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue-min.js
lib/yui/build/moodle-core-chooserdialogue/moodle-core-chooserdialogue.js
lib/yui/src/chooserdialogue/js/chooserdialogue.js