Procházet zdrojové kódy

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

version-14
Prateeksha Singh před 8 roky
committed by Rushabh Mehta
rodič
revize
c2f18dd9e4
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      frappe/public/js/frappe/form/control.js

+ 2
- 1
frappe/public/js/frappe/form/control.js Zobrazit soubor

@@ -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");


Načítá se…
Zrušit
Uložit