瀏覽代碼

[fix] comments for debugging js fixes #1961

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
9e3b5cd3cc
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      frappe/desk/form/meta.py

+ 3
- 2
frappe/desk/form/meta.py 查看文件

@@ -79,7 +79,8 @@ class FormMeta(Meta):
def _add_code(self, path, fieldname): def _add_code(self, path, fieldname):
js = get_js(path) js = get_js(path)
if js: if js:
self.set(fieldname, (self.get(fieldname) or "") + "\n\n" + js)
self.set(fieldname, (self.get(fieldname) or "")
+ "\n\n\* Adding {0} *\n\n".format(path) + js)


def add_html_templates(self, path): def add_html_templates(self, path):
if self.custom: if self.custom:
@@ -103,7 +104,7 @@ class FormMeta(Meta):
custom = frappe.db.get_value("Custom Script", {"dt": self.name, custom = frappe.db.get_value("Custom Script", {"dt": self.name,
"script_type": "Client"}, "script") or "" "script_type": "Client"}, "script") or ""


self.set("__js", (self.get('__js') or '') + "\n\n" + custom)
self.set("__js", (self.get('__js') or '') + "\n\n/* Appending Custom Script */\n\n" + custom)


def add_search_fields(self): def add_search_fields(self):
"""add search fields found in the doctypes indicated by link fields' options""" """add search fields found in the doctypes indicated by link fields' options"""


Loading…
取消
儲存