Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
bc5f6e96
Commit
bc5f6e96
authored
Aug 14, 2019
by
Piotr Gawron
Browse files
submap checkbox must be selected
parent
ca1661e8
Pipeline
#12764
passed with stage
in 13 minutes and 2 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
bc5f6e96
minerva
(
13.1.3
)
stable
;
urgency
=
medium
*
Bug
fix
:
refreshing
list
of
projects
or
list
of
users
doesn
't change active
page (#870)
* Bug fix: submap list must be selected to export from every submap (#874)
-- Piotr Gawron <piotr.gawron@uni.lu> Wed, 14 Aug 2019 17:00:00 +0200
...
...
frontend-js/src/main/js/gui/export/AbstractExportPanel.js
View file @
bc5f6e96
...
...
@@ -222,7 +222,7 @@ AbstractExportPanel.prototype._createSelectSubmapDiv = function (models) {
var
id
=
model
.
getId
();
var
row
=
Functions
.
createElement
({
type
:
"
li
"
,
content
:
"
<div class=
\"
checkbox
\"
><label> <input type=
\"
checkbox
\"
name=
\"
"
+
name
+
"
\"
value=
\"
"
+
id
+
"
\"
/>
"
+
name
+
"
</label></div>
"
,
content
:
"
<div class=
\"
checkbox
\"
><label> <input type=
\"
checkbox
\"
name=
\"
"
+
name
+
"
\"
value=
\"
"
+
id
+
"
\"
checked
/>
"
+
name
+
"
</label></div>
"
,
xss
:
false
});
choicesContainer
.
appendChild
(
row
);
...
...
frontend-js/src/main/js/gui/export/ElementExportPanel.js
View file @
bc5f6e96
...
...
@@ -94,7 +94,7 @@ ElementExportPanel.prototype.createResponseString = function () {
var
promises
=
[];
for
(
var
i
=
0
;
i
<
models
.
length
;
i
++
)
{
var
model
=
models
[
i
];
if
(
submapIds
.
length
===
0
||
$
.
inArray
(
model
.
getId
(),
submapIds
)
>=
0
)
{
if
(
$
.
inArray
(
model
.
getId
(),
submapIds
)
>=
0
)
{
promises
.
push
(
model
.
getAliases
({
type
:
types
,
complete
:
true
,
...
...
frontend-js/src/main/js/gui/export/NetworkExportPanel.js
View file @
bc5f6e96
...
...
@@ -146,10 +146,8 @@ function matchReaction(reaction, elementIds, reactionTypes, submapIds) {
if
(
$
.
inArray
(
reaction
.
getType
(),
reactionTypes
)
===
-
1
)
{
return
false
;
}
if
(
submapIds
.
length
>
0
)
{
if
(
$
.
inArray
(
reaction
.
getModelId
(),
submapIds
)
===
-
1
)
{
return
false
;
}
if
(
$
.
inArray
(
reaction
.
getModelId
(),
submapIds
)
===
-
1
)
{
return
false
;
}
var
count
=
0
;
reaction
.
getElements
().
forEach
(
function
(
element
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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