Canh Ngo pushed to branch feature/cmng-psp1-CHANNELMGR-467 at cms-community / hippo-addon-channel-manager
Commits: fb004c7d by Canh Ngo at 2016-03-16T16:39:24+01:00 CHANNELMGR-467: used CommentsProcessorService#processFragment() to parse new container markup - - - - - 1 changed file: - frontend-ng/src/angularjs/channel/page/pageStructure.service.js Changes: ===================================== frontend-ng/src/angularjs/channel/page/pageStructure.service.js ===================================== --- a/frontend-ng/src/angularjs/channel/page/pageStructure.service.js +++ b/frontend-ng/src/angularjs/channel/page/pageStructure.service.js @@ -157,7 +157,7 @@ export class PageStructureService { this._addHstComponent(catalogComponent, oldContainer.getId()).then(() => this._fetchContainerMarkup(oldContainer).then((response) => { const jQueryContainerElement = oldContainer.replaceDOM(response.data); - this._replaceContainer(oldContainer, this._createContainer(jQueryContainerElement.parent())); + this._replaceContainer(oldContainer, this._createContainer(jQueryContainerElement)); this.OverlaySyncService.syncIframe(); }) ); @@ -193,10 +193,9 @@ export class PageStructureService { * @private */ _createContainer(jQueryContainerElement) { - const containerDomElement = jQueryContainerElement[0]; let container = null; - this.hstCommentsProcessorService.run(containerDomElement, function (commentDomElement, metaData) { + this.hstCommentsProcessorService.processFragment(jQueryContainerElement, function (commentDomElement, metaData) { switch (metaData[this.HST.TYPE]) { case this.HST.TYPE_CONTAINER: if (!container) { View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/fb004c7d3a78cf7d032dd58a28774d189fe25368
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn