diff --git a/dotCMS/src/main/webapp/html/ng-contentlet-selector.jsp b/dotCMS/src/main/webapp/html/ng-contentlet-selector.jsp index 3be6ab6425c2..80456f7105cf 100644 --- a/dotCMS/src/main/webapp/html/ng-contentlet-selector.jsp +++ b/dotCMS/src/main/webapp/html/ng-contentlet-selector.jsp @@ -34,11 +34,11 @@ function contentSelected(content) { if (ngEditContentletEvents) { ngEditContentletEvents.next({ - event: "select", + name: "select", data: { inode: content.inode, identifier: content.identifier, - type: "type" + type: content.type } }) } @@ -69,6 +69,7 @@ + <% String containerIdentifier = (String) request.getParameter("container_id"); diff --git a/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet_js_inc.jsp b/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet_js_inc.jsp index 58a20c7e3701..c6180af65ddd 100644 --- a/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet_js_inc.jsp +++ b/dotCMS/src/main/webapp/html/portlet/ext/contentlet/edit_contentlet_js_inc.jsp @@ -82,7 +82,7 @@ function cancelEditCallback(callbackData){ if (ngEditContentletEvents) { ngEditContentletEvents.next({ - event: 'cancel' + name: 'cancel' }); } else { if (callbackData.indexOf("referer") != -1) { @@ -587,8 +587,12 @@ if (ngEditContentletEvents) { ngEditContentletEvents.next({ - event: 'save', - data: data + name: 'save', + data: { + identifier: data.contentletIdentifier, + inode: data.contentletInode, + type: null // Need to get the type of the content here + } }); return; }