Skip to content
Permalink
Browse files

core ContentManager - bugfix - Redirect to correct media module path,…

… fixes #1780

git-svn-id: http://svn.contrexxlabs.com/contrexx/branches/contrexx_3_1@28619 5ce06e5d-2b28-0410-aa6a-b3cd9cf52d8a
  • Loading branch information...
MichaelRitter committed Dec 11, 2013
1 parent d0b87e8 commit 6224650c64bb2e43d8767fc52372d71ba7dbdb5b
Showing with 5 additions and 0 deletions.
  1. +5 −0 core/ContentManager/View/Script/Main.js
@@ -2422,6 +2422,11 @@ cx.cm.showEditModeWindow = function(cmdName, pageId) {
if (cmdName == 'contact') {
var contactFormId = cx.cm.getcontactFormId(pageId);
editModeModuleLink = "index.php?cmd=" + cmdName + "&act=forms&tpl=edit&formId=" + contactFormId + "&csrf=" + csrf;

// Redirect to media module for media1, 2, 3 and 4
} else if (/media[1-4]/.exec(cmdName)) {
var archiveId = /media([1-4])/.exec(cmdName)[1];
editModeModuleLink = "index.php?cmd=media&archive" + archiveId + "&csrf=" + csrf;
}

content = content.replace(/\%1/g, editModeLayoutLink);

0 comments on commit 6224650

Please sign in to comment.
You can’t perform that action at this time.