ソースを参照

add newline between js and custom

version-14
Rushabh Mehta 14年前
コミット
4899164ac2
2個のファイルの変更4行の追加2行の削除
  1. +3
    -1
      cgi-bin/webnotes/model/doctype.py
  2. +1
    -1
      cgi-bin/webnotes/modules/__init__.py

+ 3
- 1
cgi-bin/webnotes/model/doctype.py ファイルの表示

@@ -270,7 +270,9 @@ class _DocType:
from webnotes.model.code import get_custom_script
custom = get_custom_script(doc.name, 'Client') or ''
doc.fields['__client_script'] = Module(doc.module).get_doc_file('doctype', doc.name, '.js').read() + custom
doc.fields['__client_script'] = \
Module(doc.module).get_doc_file('doctype', doc.name, '.js').read() \
+ '\n' + custom
self._load_select_options(doclist)
self._clear_code(doclist)



+ 1
- 1
cgi-bin/webnotes/modules/__init__.py ファイルの表示

@@ -320,7 +320,7 @@ class JsModuleFile(ModuleFile):
from webnotes.model.code import get_custom_script
custom = get_custom_script(name, 'Client') or ''
return JsModuleFile(path).read() + custom
return JsModuleFile(path).read() + '\n' + custom
def read(self):
"""


読み込み中…
キャンセル
保存