Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Merge requests
!361
Resolve "the name of commented protein is remembered in a new comment"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "the name of commented protein is remembered in a new comment"
463-the-name-of-commented-protein
into
devel_12.0.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Piotr Gawron
requested to merge
463-the-name-of-commented-protein
into
devel_12.0.x
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#463 (closed)
0
0
Merge request reports
Viewing commit
7508ebb7
Show latest version
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7508ebb7
description of the element is reset after reopening comment dialog
· 7508ebb7
Piotr Gawron
authored
6 years ago
frontend-js/src/main/js/gui/CommentDialog.js
+
4
−
3
Options
@@ -38,13 +38,13 @@ function createRow(elements) {
return
row
;
}
CommentDialog
.
prototype
.
open
=
function
(
type
s
)
{
CommentDialog
.
prototype
.
open
=
function
(
identifiedElement
s
)
{
var
self
=
this
;
self
.
setTypes
([
CommentDialog
.
GENERAL
]);
var
promises
=
[
CommentDialog
.
GENERAL
];
for
(
var
i
=
0
;
i
<
type
s
.
length
;
i
++
)
{
var
ie
=
type
s
[
i
];
for
(
var
i
=
0
;
i
<
identifiedElement
s
.
length
;
i
++
)
{
var
ie
=
identifiedElement
s
[
i
];
if
(
ie
.
getType
()
===
"
ALIAS
"
)
{
promises
.
push
(
self
.
getMap
().
getSubmapById
(
ie
.
getModelId
()).
getModel
().
getAliasById
(
ie
.
getId
(),
true
));
}
else
if
(
ie
.
getType
()
===
"
REACTION
"
)
{
@@ -182,6 +182,7 @@ CommentDialog.prototype.setTypes = function (types) {
typeOptions
.
value
=
0
;
this
.
_types
=
types
;
typeOptions
.
onchange
();
};
CommentDialog
.
prototype
.
getTypes
=
function
()
{
Loading