Skip to content

Commit

Permalink
pass through the episode generated by items
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed Jul 6, 2016
1 parent 054f7ac commit 4ded74c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pathway/static/js/pathway/services/multi_stage_form.js
Expand Up @@ -99,8 +99,6 @@ angular.module('opal.services').provider('multistage', function(){
};

var loadStepControllers = function(scope){
var episode;

if(multistageOptions.episode){
episode = multistageOptions.episode;
multistageOptions.editing = {};
Expand All @@ -124,6 +122,9 @@ angular.module('opal.services').provider('multistage', function(){
});
multistageOptions.episode = newEpisode;
}
else{
multistageOptions.episode = {};
}

scope.editing = multistageOptions.editing || {};

Expand All @@ -132,7 +133,7 @@ angular.module('opal.services').provider('multistage', function(){
step.controller = $controller(step.controller_class, {
step: step,
scope: scope,
episode: episode,
episode: multistageOptions.episode,
});
}
else{
Expand Down

0 comments on commit 4ded74c

Please sign in to comment.