diff options
| author | jason | 2016-11-03 12:32:14 -0600 |
|---|---|---|
| committer | jason | 2016-11-03 12:32:14 -0600 |
| commit | 9efcd5a66dc49854841da317fd89c49ed778a669 (patch) | |
| tree | 7811139e9e0f31ce63531aa3a911331ce4436a5d /_static/doctools.js | |
| parent | 02002cd2f9b3521f803e992dd4b6cabc9f0aea5d (diff) | |
| download | eventmq-9efcd5a66dc49854841da317fd89c49ed778a669.tar.gz eventmq-9efcd5a66dc49854841da317fd89c49ed778a669.zip | |
update docs
Diffstat (limited to '_static/doctools.js')
| -rw-r--r-- | _static/doctools.js | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/_static/doctools.js b/_static/doctools.js index 8163495..c7bfe76 100644 --- a/_static/doctools.js +++ b/_static/doctools.js | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | * | 4 | * |
| 5 | * Sphinx JavaScript utilities for all documentation. | 5 | * Sphinx JavaScript utilities for all documentation. |
| 6 | * | 6 | * |
| 7 | * :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. | 7 | * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. |
| 8 | * :license: BSD, see LICENSE for details. | 8 | * :license: BSD, see LICENSE for details. |
| 9 | * | 9 | * |
| 10 | */ | 10 | */ |
| @@ -124,7 +124,6 @@ var Documentation = { | |||
| 124 | this.fixFirefoxAnchorBug(); | 124 | this.fixFirefoxAnchorBug(); |
| 125 | this.highlightSearchWords(); | 125 | this.highlightSearchWords(); |
| 126 | this.initIndexTable(); | 126 | this.initIndexTable(); |
| 127 | |||
| 128 | }, | 127 | }, |
| 129 | 128 | ||
| 130 | /** | 129 | /** |
| @@ -253,29 +252,6 @@ var Documentation = { | |||
| 253 | }); | 252 | }); |
| 254 | var url = parts.join('/'); | 253 | var url = parts.join('/'); |
| 255 | return path.substring(url.lastIndexOf('/') + 1, path.length - 1); | 254 | return path.substring(url.lastIndexOf('/') + 1, path.length - 1); |
| 256 | }, | ||
| 257 | |||
| 258 | initOnKeyListeners: function() { | ||
| 259 | $(document).keyup(function(event) { | ||
| 260 | var activeElementType = document.activeElement.tagName; | ||
| 261 | // don't navigate when in search box or textarea | ||
| 262 | if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') { | ||
| 263 | switch (event.keyCode) { | ||
| 264 | case 37: // left | ||
| 265 | var prevHref = $('link[rel="prev"]').prop('href'); | ||
| 266 | if (prevHref) { | ||
| 267 | window.location.href = prevHref; | ||
| 268 | return false; | ||
| 269 | } | ||
| 270 | case 39: // right | ||
| 271 | var nextHref = $('link[rel="next"]').prop('href'); | ||
| 272 | if (nextHref) { | ||
| 273 | window.location.href = nextHref; | ||
| 274 | return false; | ||
| 275 | } | ||
| 276 | } | ||
| 277 | } | ||
| 278 | }); | ||
| 279 | } | 255 | } |
| 280 | }; | 256 | }; |
| 281 | 257 | ||
| @@ -284,4 +260,4 @@ _ = Documentation.gettext; | |||
| 284 | 260 | ||
| 285 | $(document).ready(function() { | 261 | $(document).ready(function() { |
| 286 | Documentation.init(); | 262 | Documentation.init(); |
| 287 | }); \ No newline at end of file | 263 | }); |