Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
1df8a69f
Commit
1df8a69f
authored
Jun 27, 2021
by
Prakhar Agarwal
🎯
Browse files
Fixed dialog not removing from DOM
parent
28a1bc84
Changes
2
Show whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/index.html
View file @
1df8a69f
...
...
@@ -36,7 +36,7 @@
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"dialog-title"
></h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal
"
aria-label=
"Close"
>
<button
type=
"button"
class=
"close"
onClick=
"cancel()
"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
...
...
pd/nw/dialog_canvas.html
View file @
1df8a69f
...
...
@@ -613,7 +613,6 @@ function cancel() {
var
i
,
attrs
,
gfxstub
;
//window.close(true);
if
(
pdgui
.
is_webapp
()){
remove_dialog
(
pd_object_callback
)
$
(
"
#dialog-modal
"
).
modal
(
"
hide
"
);
}
...
...
@@ -804,6 +803,12 @@ function add_events(name) {
});
}
pdgui
.
dialog_bindings
(
name
);
if
(
pdgui
.
is_webapp
)
{
$
(
"
#dialog-modal
"
).
on
(
"
hidden.bs.modal
"
,
function
(
e
)
{
remove_dialog
(
pd_object_callback
)
$
(
"
#dialog-modal
"
).
off
(
"
hidden.bs.modal
"
)
})
}
}
</script>
...
...
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