mirror of
https://github.com/moodle/moodle.git
synced 2025-07-23 15:22:05 +02:00
23 lines
489 B
JavaScript
23 lines
489 B
JavaScript
YUI.add('moodle-question-searchform', function (Y, NAME) {
|
|
|
|
|
|
var SELECTORS = {
|
|
OPTIONS: '.searchoptions'
|
|
},
|
|
NS;
|
|
|
|
M.question = M.question || {};
|
|
NS = M.question.searchform = {};
|
|
|
|
NS.init = function() {
|
|
Y.delegate('change', this.option_changed, Y.config.doc, SELECTORS.OPTIONS, this);
|
|
};
|
|
|
|
NS.option_changed = function(e) {
|
|
e.target.getDOMNode().form.submit();
|
|
};
|
|
|
|
|
|
|
|
}, '@VERSION@', {"requires": ["base", "node"]});
|