Skip to content

Commit

Permalink
[#847] Fix a couple of Sphinx includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 27, 2013
1 parent 833536e commit da7e9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/theming/javascript.rst
Expand Up @@ -20,7 +20,7 @@ To get CKAN to call some custom JavaScript code, we need to:
Create the file ``ckanext-example_theme/fanstatic/favorite.js``, with these
contents:

.. literalinclude:: /../ckanext/example_theme/v15_initialize_a_javascript_module/fanstatic/favorite.js
.. literalinclude:: /../ckanext/example_theme/v16_initialize_a_javascript_module/fanstatic/favorite.js

This bit of |javascript| calls the ``ckan.module()`` function to register a
new JavaScript module with CKAN. ``ckan.module()`` takes two arguments: the
Expand All @@ -40,7 +40,7 @@ To get CKAN to call some custom JavaScript code, we need to:
``ckanext-example_theme/templates/snippets/package_item.html`` with these
contents:

.. literalinclude:: /../ckanext/example_theme/v15_initialize_a_javascript_module/templates/snippets/package_item.html
.. literalinclude:: /../ckanext/example_theme/v16_initialize_a_javascript_module/templates/snippets/package_item.html

.. todo:: Link to something about HTML data-* attributes.

Expand Down

0 comments on commit da7e9d8

Please sign in to comment.