8000 Fixed browser freezing on cms toolbar markup refresh after plugin edit · django-cms/django-cms@004d1da · GitHub
[go: up one dir, main page]

Skip to content

Commit 004d1da

Browse files
committed
Fixed browser freezing on cms toolbar markup refresh after plugin edit
1 parent 879c151 commit 004d1da

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cms/static/cms/js/dist/3.8.0/bundle.toolbar.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/static/cms/js/modules/cms.toolbar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,8 @@ var Toolbar = new Class({
749749

750750
_refreshMarkup: function(newToolbar) {
751751
const switcher = this.ui.toolbarSwitcher.detach();
752-
const diff = dd.diff(this.ui.toolbar[0], newToolbar[0]);
753752

754-
dd.apply(this.ui.toolbar[0], diff);
753+
$(this.ui.toolbar[0]).replaceWith(newToolbar[0]);
755754

756755
$('.cms-toolbar-item-cms-mode-switcher').replaceWith(switcher);
757756

0 commit comments

Comments
 (0)
0