Merge branch 'MOODLE_310_MDL-70117' of https://github.com/golenkovm/moodle into MOODL...
[moodle.git] / question / yui / src / searchform / js / searchform.js
2     var SELECTORS = {
3             OPTIONS: '.searchoptions'
4         },
5         NS;
7     M.question = M.question || {};
8     NS = M.question.searchform = {};
10     NS.init = function() {
11         Y.delegate('change', this.option_changed, Y.config.doc, SELECTORS.OPTIONS, this);
12     };
14     NS.option_changed = function(e) {
15             e.target.getDOMNode().form.submit();
16     };