8 Commits

Author SHA1 Message Date
Damyon Wiese
28de777199 MDL-51222 Javascript: Trigger events for filters on DOM insertion
When nodes are added to the dom, they may need to be re-processed by a JS based
filter. To do this we need to trigger the legacy YUI event filter-content-updated.

To make this easier I added some wrappers to template that will insert the node, run any
JS and trigger the event.

I also changed existing yui code to call the amd function to trigger the event. This way
all jquery and yui listeners will always be notified.
2015-09-22 15:40:51 +08:00
Damyon Wiese
adeb96d28f MDL-49046 javascript: Add support for AMD modules and jquery.
Grunt is the build tool.
2015-02-23 16:23:10 +08:00
Andrew Nicols
99a9ac6538 MDL-48620 JavaScript: Correct sorting after new options 2015-01-28 13:23:55 +08:00
Andrew Nicols
2357166901 MDL-48620 JavaScript: Update .jshintrc to comply with coding style
* eqeqeq: We do not require use of ===
* maxlen: Coding style aims for 132 characters
* indent: 4 Characters (Helps some editors but does not warn in new version of jshint)
* undef: Warn about variables used before they are defined
* predef: Specify that we define the M variable elsewhere
2015-01-23 14:50:31 +08:00
Andrew Nicols
0375273e4e MDL-48620 JavaScript: Sort .jshintrc alphabetically
This will make future changes easier to manage and spot.
2015-01-23 14:50:31 +08:00
Andrew Nicols
ea90423cf9 MDL-43194 JavaScript: Correct maxlen jshint configuration 2013-12-04 16:39:48 +08:00
Andrew Robert Nicols
487989d8ef MDL-37872 AJAX Remove node option from jshintrc 2013-02-05 08:37:41 +00:00
Andrew Robert Nicols
22bec023db MDL-37626 Include jshint configuration 2013-02-01 15:00:13 +00:00