ソースを参照

[fix] detach instead of emptying parent (#3783)

version-14
Prateeksha Singh 8年前
committed by Rushabh Mehta
コミット
c2f18dd9e4
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      frappe/public/js/frappe/form/control.js

+ 2
- 1
frappe/public/js/frappe/form/control.js ファイルの表示

@@ -1242,7 +1242,8 @@ frappe.ui.form.ControlAttachImage = frappe.ui.form.ControlAttach.extend({
var me = this;
this._super();

this.container = $('<div class="control-container">').appendTo($(this.parent).empty());
$(this.wrapper).detach();
this.container = $('<div class="control-container">').appendTo($(this.parent));
this.container.attr('data-fieldtype', this.df.fieldtype).append(this.wrapper);
if(this.df.align === 'center') {
this.container.addClass("flex-justify-center");


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