Skip to content

Commit

Permalink
Issue #000 fix: collection editor load issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pallakartheekreddy committed Aug 6, 2018
1 parent 374598c commit a805487
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/scripts/collectioneditor/manager/container-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ org.ekstep.contenteditor.containerManager = new(Class.extend({
this.registeredContainer.push({ id: manifest.id, container: container });
this.load(container, manifest);
},
load: function(container, manifest, allowTemplateCache) {
load: function(container, manifest) {
var instance = this;
if (container.templateURL) {
container.templateURL = org.ekstep.contenteditor.api.resolvePluginResource(manifest.id, manifest.ver, container.templateURL);
instance.loadNgModules(container.templateURL, undefined, allowTemplateCache).then(function(){
instance.scope.addToContainer(container.type);
});
instance.loadNgModules(container.templateURL, undefined);
if (container.controllerURL) {
container.controllerURL = org.ekstep.contenteditor.api.resolvePluginResource(manifest.id, manifest.ver, container.controllerURL);
instance.loadNgModules(undefined, container.controllerURL, allowTemplateCache)
instance.loadNgModules(undefined, container.controllerURL)
.then(function() {
instance.scope.addToContainer(container);
}, function() {
Expand Down

0 comments on commit a805487

Please sign in to comment.