Skip to content

Commit 862c026

Browse files
author
Ed Costello
committed
Additional tweaks to html cleanup, imbed Google Code jquery
1 parent ff293e7 commit 862c026

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

themes/mongodb/layout.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,20 @@
8181
HAS_SOURCE: {{ has_source|lower }}
8282
};
8383
</script>
84-
{%- for scriptfile in script_files %}
84+
{%- for scriptfile in script_files %}
85+
{% if scriptfile == '_static/jquery.js' %}
86+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
87+
{%- else -%}
8588
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
86-
{%- endfor %}
89+
{%- endif -%}
90+
{%- endfor %}
8791
{%- endmacro %}
88-
{%- macro css() -%}
92+
{%- macro css() %}
8993
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
9094
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
91-
{%- for cssfile in css_files %}
95+
{%- for cssfile in css_files %}
9296
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
93-
{%- endfor %}
97+
{%- endfor %}
9498
{%- endmacro -%}
9599
<html xmlns="http://www.w3.org/1999/xhtml">
96100
<head>
@@ -257,7 +261,7 @@
257261
jQuery("#jirafeedback").click(function(e) {e.preventDefault();showCollectorDialog();});
258262
jQuery("#jirafooter").click(function(e) {e.preventDefault();showCollectorDialog();});
259263
}};
260-
{%- endblock -%}
264+
{%- endblock %}
261265
</script>
262266
</body>
263267
</html>

0 commit comments

Comments
 (0)