Skip to content
GitLab
Menu
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
a5de50a8
Commit
a5de50a8
authored
Feb 18, 2016
by
Okhin
Browse files
Moving the JS into the base.html template
parent
51b2a3ea
Changes
4
Show whitespace changes
Inline
Side-by-side
nnmon/templates/add.html
View file @
a5de50a8
...
@@ -5,11 +5,6 @@
...
@@ -5,11 +5,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
media=
"all"
href=
"/static/css/jquery.autocomplete.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"all"
href=
"/static/css/jquery.autocomplete.css"
/>
{% endblock %}
{% endblock %}
{% block scripts %}
{% 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"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
init_form
();
init_form
();
...
...
nnmon/templates/base.html
View file @
a5de50a8
...
@@ -74,6 +74,17 @@
...
@@ -74,6 +74,17 @@
{% endblock %}
{% endblock %}
</div>
</div>
{% block scripts %}
{% 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 %}
{% endblock %}
</body>
</body>
</html>
</html>
nnmon/templates/index.html
View file @
a5de50a8
...
@@ -7,11 +7,6 @@
...
@@ -7,11 +7,6 @@
{% endblock %}
{% endblock %}
{% block scripts %}
{% 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"
>
<script
type=
"text/javascript"
>
function
focushandlers
(
ed
)
{
function
focushandlers
(
ed
)
{
var
s
=
ed
.
settings
;
var
s
=
ed
.
settings
;
...
...
nnmon/templates/list.html
View file @
a5de50a8
...
@@ -10,15 +10,7 @@
...
@@ -10,15 +10,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
{% endblock %}
{% endblock %}
{% block scripts %}
{% 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"
>
<script
type=
"text/javascript"
>
var
data
=
{
%
if
countryweights
%
}{{
countryweights
|
safe
}}{
%
else
%
}[]{
%
endif
%
};
var
data
=
{
%
if
countryweights
%
}{{
countryweights
|
safe
}}{
%
else
%
}[]{
%
endif
%
};
var
country
=
"
{{country}}
"
;
var
country
=
"
{{country}}
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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