Explorar el Código

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

version-14
Prateeksha Singh hace 8 años
committed by Rushabh Mehta
padre
commit
c2f18dd9e4
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      frappe/public/js/frappe/form/control.js

+ 2
- 1
frappe/public/js/frappe/form/control.js Ver fichero

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


Cargando…
Cancelar
Guardar