You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
489 B
23 lines
489 B
2 years ago
|
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"]});
|