Преглед на файлове

Allow control over loading scripts in base.

Some control over how base scripts are loaded would be helpful. Faced issue while integrating summernote within web page.
https://github.com/summernote/summernote/issues/138

For now, we have overridden base.html in custom app.
version-14
gaurav-naik преди 8 години
committed by GitHub
родител
ревизия
7e57005894
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      frappe/templates/base.html

+ 2
- 2
frappe/templates/base.html Целия файл

@@ -78,13 +78,13 @@
{%- block footer -%}{% include "templates/includes/footer/footer.html" %}{%- endblock -%}
</div>
</div>
{% block base_scripts %}
<!-- js should be loaded in body! -->
<script type="text/javascript"
src="/assets/frappe/js/lib/jquery/jquery.min.js"></script>
<script type="text/javascript"
src="/assets/js/frappe-web.min.js"></script>
{% endblock %}
{%- if js_globals is defined %}
<script>
{%- for key, value in js_globals.iteritems() %}


Зареждане…
Отказ
Запис