doc: fix show-hide sample in notification devref

The new doc template includes jquery too late and therefore showing
and hindig notification samples and auto hiding them by default doesn't
work.

This patch loads the jquery lib earlier for the notification devref.

Closes-Bug: #1713974
Closes-Bug: #1714363
Change-Id: I07db4755c69d493e591761578d1077bb44acda41
(cherry picked from commit 0499b28051)
This commit is contained in:
Balazs Gibizer 2017-09-01 12:37:03 +02:00 committed by Matt Riedemann
parent cdf08b7c3f
commit c01ca5444a
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ class VersionedNotificationDirective(Directive):
SAMPLE_ROOT = 'doc/notification_samples/'
TOGGLE_SCRIPT = """
<!-- jQuery -->
<script type="text/javascript" src="../_static/js/jquery-3.2.1.min.js">
</script>
<script>
jQuery(document).ready(function(){
jQuery('#%s-div').toggle('show');