diff --git a/doc/javascript-coding-standards.rst b/doc/javascript-coding-standards.rst index a11fbe3e3c2..907e85940f4 100644 --- a/doc/javascript-coding-standards.rst +++ b/doc/javascript-coding-standards.rst @@ -298,7 +298,7 @@ JavaScript after the page has loaded. It's then not part of the HTML document and can submit any data format it pleases. Ajax -```````` +```` Ajax requests can be used to improve the experience of submitting forms and other actions that require server interactions. Nearly all requests will diff --git a/doc/javascript-module-tutorial.rst b/doc/javascript-module-tutorial.rst index 6180992b19c..a250513ef71 100644 --- a/doc/javascript-module-tutorial.rst +++ b/doc/javascript-module-tutorial.rst @@ -48,6 +48,11 @@ We pass in the module name and a factory function that should return our module object. This factory gets passed a local jQuery object and a translation object. +.. Note:: + In order to include a module for page render inclusion within an + extension it is recommended that you use ``{% resource %}`` within + your templates. See the `Resource Documentation <./resources.html>`_ + Initialisation ~~~~~~~~~~~~~~