Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
YUI.add('moodle-question-searchform', function (Y, NAME) {
2
 
3
 
4
    var SELECTORS = {
5
            OPTIONS: '.searchoptions'
6
        },
7
        NS;
8
 
9
    M.question = M.question || {};
10
    NS = M.question.searchform = {};
11
 
12
    NS.init = function() {
13
        Y.delegate('change', this.option_changed, Y.config.doc, SELECTORS.OPTIONS, this);
14
    };
15
 
16
    NS.option_changed = function(e) {
17
            e.target.getDOMNode().form.submit();
18
    };
19
 
20
 
21
 
22
}, '@VERSION@', {"requires": ["base", "node"]});