소스 검색

[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):
js = get_js(path)
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):
if self.custom:
@@ -103,7 +104,7 @@ class FormMeta(Meta):
custom = frappe.db.get_value("Custom Script", {"dt": self.name,
"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):
"""add search fields found in the doctypes indicated by link fields' options"""


불러오는 중...
취소
저장