Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
minerva
core
Commits
da458097
Commit
da458097
authored
Feb 05, 2018
by
Piotr Gawron
Browse files
during closing/opening overlays checkbox is blocked
parent
25d0e0d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js
View file @
da458097
...
...
@@ -160,11 +160,17 @@ OverlayPanel.prototype.createOverlayRow = function (overlay, checked) {
checkbox
.
type
=
"
checkbox
"
;
checkbox
.
checked
=
checked
;
checkbox
.
onclick
=
function
()
{
if
(
this
.
checked
)
{
return
self
.
getMap
().
openDataOverlay
(
overlay
.
getId
()).
then
(
null
,
GuiConnector
.
alert
);
var
thisCheckbox
=
this
;
var
toggleOverlayPromise
;
if
(
thisCheckbox
.
checked
)
{
toggleOverlayPromise
=
self
.
getMap
().
openDataOverlay
(
overlay
.
getId
());
}
else
{
return
self
.
getMap
().
removeSelectedLayout
(
overlay
.
getId
())
.
then
(
null
,
GuiConnector
.
alert
)
;
toggleOverlayPromise
=
self
.
getMap
().
removeSelectedLayout
(
overlay
.
getId
());
}
$
(
thisCheckbox
).
prop
(
"
disabled
"
,
true
);
return
toggleOverlayPromise
.
then
(
null
,
GuiConnector
.
alert
).
finally
(
function
()
{
$
(
thisCheckbox
).
prop
(
"
disabled
"
,
false
);
});
};
viewTd
.
appendChild
(
checkbox
);
}
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