Skip to content
Snippets Groups Projects
Commit 2eaec62f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '463-the-name-of-commented-protein' into 'devel_12.0.x'

Resolve "the name of commented protein is remembered in a new comment"

See merge request !361
parents 2dc23982 7508ebb7
No related branches found
No related tags found
1 merge request!361Resolve "the name of commented protein is remembered in a new comment"
Pipeline #
...@@ -38,13 +38,13 @@ function createRow(elements) { ...@@ -38,13 +38,13 @@ function createRow(elements) {
return row; return row;
} }
CommentDialog.prototype.open = function (types) { CommentDialog.prototype.open = function (identifiedElements) {
var self = this; var self = this;
self.setTypes([CommentDialog.GENERAL]); self.setTypes([CommentDialog.GENERAL]);
var promises = [CommentDialog.GENERAL]; var promises = [CommentDialog.GENERAL];
for (var i = 0; i < types.length; i++) { for (var i = 0; i < identifiedElements.length; i++) {
var ie = types[i]; var ie = identifiedElements[i];
if (ie.getType() === "ALIAS") { if (ie.getType() === "ALIAS") {
promises.push(self.getMap().getSubmapById(ie.getModelId()).getModel().getAliasById(ie.getId(), true)); promises.push(self.getMap().getSubmapById(ie.getModelId()).getModel().getAliasById(ie.getId(), true));
} else if (ie.getType() === "REACTION") { } else if (ie.getType() === "REACTION") {
...@@ -182,6 +182,7 @@ CommentDialog.prototype.setTypes = function (types) { ...@@ -182,6 +182,7 @@ CommentDialog.prototype.setTypes = function (types) {
typeOptions.value = 0; typeOptions.value = 0;
this._types = types; this._types = types;
typeOptions.onchange();
}; };
CommentDialog.prototype.getTypes = function () { CommentDialog.prototype.getTypes = function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment