소스 검색

[minor] fix help.js

version-14
Rushabh Mehta 8 년 전
부모
커밋
58241f12a5
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      frappe/custom/doctype/customize_form/customize_form.py
  2. +4
    -0
      frappe/public/js/frappe/misc/help.js

+ 2
- 2
frappe/custom/doctype/customize_form/customize_form.py 파일 보기

@@ -244,8 +244,8 @@ class CustomizeForm(Document):
changed = True changed = True


if changed: if changed:
custom_field.flags.ignore_validate = True
custom_field.save()
custom_field.db_update()
#custom_field.save()


def delete_custom_fields(self): def delete_custom_fields(self):
meta = frappe.get_meta(self.doc_type) meta = frappe.get_meta(self.doc_type)


+ 4
- 0
frappe/public/js/frappe/misc/help.js 파일 보기

@@ -5,6 +5,10 @@ frappe.provide("frappe.help");


frappe.help.youtube_id = {}; frappe.help.youtube_id = {};


frappe.help.has_help = function(doctype) {
return frappe.help.youtube_id[doctype];
}

frappe.help.show = function(doctype) { frappe.help.show = function(doctype) {
if(frappe.help.youtube_id[doctype]) { if(frappe.help.youtube_id[doctype]) {
frappe.help.show_video(frappe.help.youtube_id[doctype]); frappe.help.show_video(frappe.help.youtube_id[doctype]);


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