Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
06772034
Commit
06772034
authored
Nov 06, 2019
by
Piotr Gawron
Browse files
disable select type button when type is defined in the file
parent
098df4d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
06772034
minerva
(
14.0.3
)
stable
;
urgency
=
medium
*
Bug
fix
:
some
SBGN
files
uploaded
to
minerva
could
not
be
exported
to
SBML
due
to
problems
with
identifiers
used
by
SBGN
(#
1006
)
*
Bug
fix
:
upload
of
data
overlay
with
conflicting
overlay
types
caused
error
(#
998
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Wed
,
06
Nov
2019
12
:
00
:
00
+
0200
...
...
frontend-js/src/main/js/gui/AddOverlayDialog.js
View file @
06772034
...
...
@@ -163,10 +163,13 @@ AddOverlayDialog.prototype.processFile = function (file) {
descriptionInput
.
value
=
overlay
.
getDescription
();
}
var
typeSelect
=
$
(
"
[name='overlay-type']
"
,
self
.
getElement
())[
0
];
$
(
typeSelect
).
attr
(
"
disabled
"
,
false
);
if
(
overlay
.
getType
()
!==
undefined
)
{
var
typeSelect
=
$
(
"
[name='overlay-type']
"
,
self
.
getElement
())[
0
];
if
(
$
(
"
option[value='
"
+
overlay
.
getType
()
+
"
']
"
,
typeSelect
).
length
===
0
)
{
GuiConnector
.
warn
(
"
Invalid type:
"
+
overlay
.
getType
());
}
else
{
$
(
typeSelect
).
attr
(
"
disabled
"
,
true
);
}
self
.
setType
(
overlay
.
getType
());
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment