Browse Source

Merge branch 'master' into develop

version-14
Saurabh 7 years ago
parent
commit
8c350f8578
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      frappe/__init__.py
  2. +1
    -1
      frappe/website/doctype/web_form/templates/web_form.html
  3. +1
    -1
      frappe/website/doctype/web_form/web_form.py

+ 1
- 1
frappe/__init__.py View File

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template

__version__ = '9.2.4'
__version__ = '9.2.5'
__title__ = "Frappe Framework"

local = Local()


+ 1
- 1
frappe/website/doctype/web_form/templates/web_form.html View File

@@ -369,7 +369,7 @@ window.web_form_settings = {
<script type="text/javascript" src="/assets/js/web_form.min.js"></script>
<script>
{% if script is defined %}
{{ script.decode('utf-8') }}
{{ script }}
{% endif %}
</script>
{% endblock %}


+ 1
- 1
frappe/website/doctype/web_form/web_form.py View File

@@ -255,7 +255,7 @@ def get_context(context):

js_path = os.path.join(os.path.dirname(self.web_form_module.__file__), scrub(self.name) + '.js')
if os.path.exists(js_path):
context.script = frappe.render_template(open(js_path, 'r').read(), context)
context.script = frappe.render_template(open(js_path, 'r').read().decode('utf-8'), context)

css_path = os.path.join(os.path.dirname(self.web_form_module.__file__), scrub(self.name) + '.css')
if os.path.exists(css_path):


Loading…
Cancel
Save