Acknowledge "ingnore_minified" on editor page.

a few typo and consistency also.
This commit is contained in:
Matthias Bussonnier 2015-09-13 18:49:24 -07:00
parent c29b8780a3
commit c4f2c5ac23
3 changed files with 8 additions and 4 deletions

View File

@ -76,7 +76,7 @@ define([
// backward compat.
Object.defineProperty(this, 'cm_config', {
get: function() {
console.warn("Warning: accessing Cell.cm_config directly is deprecate.")
console.warn("Warning: accessing Cell.cm_config directly is deprecated.")
return that._options.cm_config;
},
});

View File

@ -95,5 +95,9 @@ data-file-path="{{file_path}}"
{{super()}}
<script src="{{ static_url("edit/js/main.min.js") }}" type="text/javascript" charset="utf-8"></script>
{% if ignore_minified_js %}
<script src="{{ static_url("edit/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
{% else %}
<script src="{{ static_url("edit/js/main.min.js") }}" type="text/javascript" charset="utf-8"></script>
{% endif %}
{% endblock %}

View File

@ -332,9 +332,9 @@ data-notebook-path="{{notebook_path}}"
<script src="{{ static_url("components/text-encoding/lib/encoding.js") }}" charset="utf-8"></script>
{% if ignore_minified_js %}
<script src="{{ static_url("notebook/js/main.js") }}" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
{% else %}
<script src="{{ static_url("notebook/js/main.min.js") }}" charset="utf-8"></script>
<script src="{{ static_url("notebook/js/main.min.js") }}" type="text/javascript" charset="utf-8"></script>
{% endif %}
{% endblock %}