Skip to content

Commit

Permalink
[#1377] Add stubs for remaining sections of js tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Dec 17, 2013
1 parent e46df2a commit da55e8a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions doc/theming/javascript.rst
Expand Up @@ -255,6 +255,15 @@ include a custom CSS file. Now we need to create that file,
Restart CKAN, and your dataset popovers should be looking much better.


--------------
Error handling
--------------

.. todo::

Add an example of how to handle error responses when making ajax requests.


------
pubsub
------
Expand Down Expand Up @@ -308,3 +317,31 @@ pubsub to make the dataset popovers disappear whenever a new popover appears:

.. literalinclude:: /../ckanext/example_theme/v19_pubsub/fanstatic/example_theme_popover.js
:language: javascript


--------------
jQuery plugins
--------------

.. todo::

Can module register their own jQuery plugins?
If so, provide an example.


--------------------
Internationalization
--------------------

.. todo::

Show how to Internationalize a JavaScript module.


--------------------------
Testing JavaScript modules
--------------------------

.. todo::

Show how to write tests for the example module.

0 comments on commit da55e8a

Please sign in to comment.