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
Prakhar Agarwal
purr-data
Commits
606c6a3e
Commit
606c6a3e
authored
Jun 27, 2021
by
Prakhar Agarwal
🎯
Browse files
Fixed bug in closing of dialog
parent
1df8a69f
Pipeline
#3658
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/index.js
View file @
606c6a3e
...
...
@@ -60,7 +60,7 @@ function create_window(cid, type, width, height, xpos, ypos, attr_array) {
$
(
"
#dialog-body
"
).
prepend
(
dialog_div
.
outerHTML
)
$
(
"
#dialog-div
"
).
prepend
(
data
)
if
(
f
===
"
dialog_canvas.html
"
)
{
if
(
f
===
"
dialog_canvas.html
"
||
f
===
"
dialog_iemgui.html
"
)
{
$
(
"
#dialog-title
"
).
text
(
"
Canvas Properties
"
);
}
$
(
"
#dialog-modal
"
).
modal
(
"
show
"
);
...
...
pd/nw/dialog_iemgui.html
View file @
606c6a3e
...
...
@@ -531,7 +531,7 @@ function cancel(revert_changes) {
var
dirty
=
false
,
attr
;
//window.close(true);
if
(
pdgui
.
is_webapp
()){
remove_dialog
(
pd_object_callback
)
$
(
"
#dialog-modal
"
).
modal
(
"
hide
"
);
}
if
(
revert_changes
)
{
for
(
attr
in
old_attrs
)
{
...
...
@@ -673,6 +673,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