Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
加载时移除无用配置
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed May 11, 2019
1 parent bd16a38 commit 5305a31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hsweb-ui/admin/form/designer-drag/designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
config.useIdForName = componentRepo.useIdForName;
var components = [];
var html = $("<div>").html( this.getHtml());
html.find(".mini-button .ui-sortable-handle").remove();

for (var id in this.components) {
var container = html.find("[hs-id=" + id + "]");
if (componentRepo.useIdForName) {
Expand Down Expand Up @@ -208,6 +210,8 @@
initDroppable();
reloadMiniui();
initComponentList();
$(".main-panel").find(".mini-button.ui-sortable-handle").remove();

}, 1);

};
Expand Down
2 changes: 2 additions & 0 deletions hsweb-ui/admin/form/designer-drag/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@
.html(me.html);
$(el).html("")
.append(html);
html.find(".mini-button.ui-sortable-handle").remove();

$(me.components)
.each(function () {
var id = this.id;
Expand Down

0 comments on commit 5305a31

Please sign in to comment.