Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
f4f44026
Commit
f4f44026
authored
Feb 18, 2016
by
Okhin
Browse files
Moving the JS into the base.html template
parent
cc205c77
Changes
4
Hide whitespace changes
Inline
Side-by-side
nnmon/templates/add.html
View file @
f4f44026
...
...
@@ -5,11 +5,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
media=
"all"
href=
"/static/css/jquery.autocomplete.css"
/>
{% endblock %}
{% block scripts %}
<script
type=
"text/javascript"
src=
"/static/js/tinymce/tiny_mce.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/editor.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.autocomplete.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/form.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
init_form
();
...
...
nnmon/templates/base.html
View file @
f4f44026
...
...
@@ -56,6 +56,17 @@
{% endblock %}
</div>
{% block scripts %}
<script
type=
"text/javascript"
src=
"/static/js/tinymce/tinymce.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery-ui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.tablesorter.js"
>
</script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.tablesorter.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/form.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/picnet.table.filter.min.js"
></script>
<script
type=
"text/javascript"
src=
'/static/js/d3.min.js'
></script>
<script
type=
"text/javascript"
src=
'/static/js/topojson.min.js'
></script>
<script
type=
"text/javascript"
src=
'/static/js/datamaps.js'
></script>
<script
type=
"text/javascript"
src=
"/static/js/map.js"
></script>
{% endblock %}
</body>
</html>
nnmon/templates/index.html
View file @
f4f44026
...
...
@@ -7,11 +7,6 @@
{% endblock %}
{% block scripts %}
<script
type=
"text/javascript"
src=
"/static/js/tinymce/tinymce.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery-ui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.tablesorter.js"
>
</script>
<script
type=
"text/javascript"
src=
"/static/js/form.js"
></script>
<script
type=
"text/javascript"
>
function
focushandlers
(
ed
)
{
var
s
=
ed
.
settings
;
...
...
nnmon/templates/list.html
View file @
f4f44026
...
...
@@ -10,15 +10,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
{% endblock %}
{% block scripts %}
<script
type=
"text/javascript"
src=
"/static/js/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/jquery.tablesorter.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/picnet.table.filter.min.js"
></script>
<script
type=
"text/javascript"
src=
'/static/js/d3.min.js'
></script>
<script
type=
"text/javascript"
src=
'/static/js/topojson.min.js'
></script>
<script
type=
"text/javascript"
src=
'/static/js/datamaps.js'
></script>
<script
type=
"text/javascript"
src=
"/static/js/map.js"
></script>
<script
type=
"text/javascript"
>
var
data
=
{
%
if
countryweights
%
}{{
countryweights
|
safe
}}{
%
else
%
}[]{
%
endif
%
};
var
country
=
"
{{country}}
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment