Skip to content

Commit

Permalink
Fix #199 #200
Browse files Browse the repository at this point in the history
  • Loading branch information
failys committed Mar 30, 2018
1 parent 98f2141 commit d65cdbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cairis/web/dist/js/cairis/goals.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ mainContent.on('click', ".goalEnvProperties", function () {

$.each(goal.theEnvironmentProperties, function (index, env) {
if(env.theEnvironmentName == name){
$('#goalProperties').loadJSON(env,null);
$('#theCategory').val(env.theCategory);
$('#thePriority').val(env.thePriority);
$("#theIssue").val(env.theIssue);
$("#theDefinition").val(env.theDefinition);
$("#theFitCriterion").val(env.theFitCriterion);
Expand Down Expand Up @@ -345,6 +346,7 @@ function addGoalEnvironment() {
$("#goalProperties").show("fast");
$.session.set("GoalEnvName", text);
$.session.set("Goal", JSON.stringify(goal));
$("#theGoalEnvironments").find("tbody").find(".goalEnvProperties:last").trigger('click');
};

mainContent.on('click', ".deleteGoalEnv", function () {
Expand Down
1 change: 1 addition & 0 deletions cairis/web/dist/js/cairis/obstacles.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ function addObstacleEnvironment() {
clearObstacleEnvironmentPanel();
$("#obstacleProperties").show("fast");
$.session.set("Obstacle", JSON.stringify(obstacle));
$("#theObstacleEnvironments").find("tbody").find(".obstacleEnvProperties:last").trigger('click');
};

function clearObstacleEnvironmentPanel() {
Expand Down

0 comments on commit d65cdbf

Please sign in to comment.