aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authortschilling2014-07-16 21:15:39 -0400
committertschilling2014-07-16 21:15:39 -0400
commit4b960709e15455af09d5632f84b463dee268d8a8 (patch)
tree0d3b2521482140d117c9e7606b384e13c46ecd36 /docs
parentb80c9221b48784692a7f454ca173c4a267c9f4c0 (diff)
downloaddjango-debug-toolbar-4b960709e15455af09d5632f84b463dee268d8a8.tar.bz2
Updating JS api documentation.
Removed parameters to show_toolbar and hide_toolbar. Removed extra whitespace and added a tab after a long param description. Fixed copy-paste error for method summary for djdt.cookie.set
Diffstat (limited to 'docs')
-rw-r--r--docs/panels.rst13
1 files changed, 3 insertions, 10 deletions
diff --git a/docs/panels.rst b/docs/panels.rst
index c639644..de6f16a 100644
--- a/docs/panels.rst
+++ b/docs/panels.rst
@@ -278,7 +278,6 @@ JavaScript API
Panel templates should include any JavaScript files they need. There are a few
common methods available, as well as the toolbar's version of jQuery.
-
.. js:function:: djdt.close
Triggers the event to close any active panels.
@@ -291,22 +290,19 @@ common methods available, as well as the toolbar's version of jQuery.
.. js:function:: djdt.cookie.set
- This is the toolbar's version of jQuery.
+ This is a helper function to set a value stored in the cookies.
:param string key: The key to be used.
:param string value: The value to be set.
- :param Object options: The key for the value to be fetched. It should contain
- the properties ``expires`` and ``path``.
+ :param Object options: The options for the value to be set. It should contain
+ the properties ``expires`` and ``path``.
.. js:function:: djdt.hide_toolbar
Closes any panels and hides the toolbar.
- :param boolean setCookie: Whether or not it should set the display cookie for
- the toolbar.
-
.. js:function:: djdt.jQuery
This is the toolbar's version of jQuery.
@@ -314,6 +310,3 @@ common methods available, as well as the toolbar's version of jQuery.
.. js:function:: djdt.show_toolbar
Shows the toolbar.
-
- :param boolean animate: Whether or not it should use an animation when calling
- ``show`` on the toolbar.