Skip to content

Commit

Permalink
only close concept detail on edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanderhaegen Cedrik committed Feb 11, 2015
1 parent 73cd988 commit 59eebea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atramhasis/static/admin/src/app/ConceptForm.js
Expand Up @@ -196,8 +196,6 @@ define(
},

init: function (scheme, concept) {
//close corresponding concept detail tab
topic.publish("concept.close", concept.id, scheme);
this.reset();
this.scheme = scheme;
var schemebox = dijit.byId("schemebox");
Expand All @@ -210,6 +208,8 @@ define(
this.subordinateArraysManager.setScheme(scheme);
this.superordinatesManager.setScheme(scheme);
if (concept) {
//close corresponding concept detail tab
topic.publish("concept.close", concept.id, scheme);
console.log("editing existing concept: " + concept.label);
this.conceptId = concept.id;
this.typeComboBox.set("value", concept.type);
Expand Down

0 comments on commit 59eebea

Please sign in to comment.