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
This commit is contained in:
parent
1fb132f2f3
commit
0499b28051
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user