Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the issue that caused all modules to be relocated to same pane #3652

Merged
merged 1 commit into from
Mar 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,13 @@ dnn.ContentEditorManager = $.extend({}, dnn.ContentEditorManager, {
var cookieModuleId = moduleDialog._getCookie('CEM_CallbackData');
if (cookieModuleId && cookieModuleId.indexOf('module-') > -1) {
var moduleId = cookieModuleId.substr(7);
var existingModule = moduleDialog._getCookie('CEM_ExistingModule');
if (!existingModule) existingModule = false;

var module = $('div.DnnModule-' + moduleId);
var moduleManager = module.parent().data('dnnModuleManager');

moduleDialog.apply(moduleManager);
moduleDialog.apply(moduleManager, existingModule);
moduleDialog._processModuleForDrag(module);
$('#moduleActions-' + moduleId).addClass('floating');
moduleDialog._removeCookie('CEM_CallbackData');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,10 @@ if (typeof dnn.ContentEditorManager === "undefined" || dnn.ContentEditorManager
setModuleId: function (moduleId) {
if (moduleId <= 0) {
this._removeCookie('CEM_NewModuleId');
this._removeCookie('CEM_ExistingModule');
} else {
this._setCookie('CEM_NewModuleId', moduleId);
this._setCookie('CEM_ExistingModule', this._callFromExistingModule);
}
},

Expand Down