Merge branch 'hotfix/4.8.3'
This commit is contained in:
@@ -62,6 +62,7 @@ Espo.define('views/admin/layouts/grid', 'views/admin/layouts/base', function (De
|
||||
}
|
||||
});
|
||||
$(e.target).closest('ul.panels > li').remove();
|
||||
this.normilizaDisabledItemList();
|
||||
},
|
||||
'click #layout a[data-action="addRow"]': function (e) {
|
||||
var tpl = this.unescape($("#layout-row-tpl").html());
|
||||
@@ -76,6 +77,7 @@ Espo.define('views/admin/layouts/grid', 'views/admin/layouts/base', function (De
|
||||
}
|
||||
});
|
||||
$(e.target).closest('ul.rows > li').remove();
|
||||
this.normilizaDisabledItemList();
|
||||
},
|
||||
'click #layout a[data-action="removeField"]': function (e) {
|
||||
var el = $(e.target).closest('li');
|
||||
@@ -166,6 +168,12 @@ Espo.define('views/admin/layouts/grid', 'views/admin/layouts/base', function (De
|
||||
}
|
||||
}, Dep.prototype.events),
|
||||
|
||||
normilizaDisabledItemList: function () {
|
||||
$('#layout ul.cells.disabled > li').each(function (i, el) {
|
||||
$(el).removeAttr('data-full-width');
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
addPanel: function (data) {
|
||||
var tpl = this.unescape($("#layout-panel-tpl").html());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user