[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/yui/build/moodle-question-searchform/ -> moodle-question-searchform.js (source)

   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"]});


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1