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
d27e3c39
Commit
d27e3c39
authored
Jun 25, 2021
by
Prakhar Agarwal
🎯
Browse files
Added dialog for preferences
parent
b447f9a2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/index.html
View file @
d27e3c39
...
...
@@ -30,6 +30,22 @@
</div>
</div>
<!-- Modal -->
<div
class=
"modal fade"
id=
"dialog-modal"
tabindex=
"-1"
role=
"dialog"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-centered"
role=
"document"
>
<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"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
id=
"dialog-body"
>
</div>
</div>
</div>
</div>
<div
id=
"container-app"
class=
"container-fluid"
>
<!-- Menu -->
<nav
id=
"menu"
></nav>
...
...
emscripten/project/purr-data/index.js
View file @
d27e3c39
...
...
@@ -58,9 +58,14 @@ function create_window(cid, type, width, height, xpos, ypos, attr_array) {
// cleaning dialog div
dialog_div
.
innerHTML
=
""
;
$
(
"
#
sidebar-body-
dialog
"
).
prepend
(
dialog_div
.
outerHTML
)
$
(
"
#dialog
-body
"
).
prepend
(
dialog_div
.
outerHTML
)
$
(
"
#dialog-div
"
).
prepend
(
data
)
if
(
f
===
"
dialog_canvas.html
"
)
{
$
(
"
#dialog-title
"
).
text
(
"
Canvas Properties
"
);
}
else
if
(
f
===
"
dialog_prefs.html
"
)
{
$
(
"
#dialog-title
"
).
text
(
"
Pd-L2Ork Properties
"
);
}
$
(
"
#dialog-modal
"
).
modal
(
"
show
"
);
// initialize the dialog window
register_dialog
(
cid
,
attr_array
);
});
...
...
pd/nw/dialog_canvas.html
View file @
d27e3c39
This diff is collapsed.
Click to expand it.
pd/nw/dialog_prefs.html
View file @
d27e3c39
...
...
@@ -774,6 +774,7 @@ function cancel() {
pdgui
.
remove_dialogwin
(
pd_object_callback
);
if
(
pdgui
.
is_webapp
()){
remove_dialog
(
pd_object_callback
)
$
(
"
#dialog-modal
"
).
modal
(
"
hide
"
);
}
else
{
window
.
close
(
true
);
}
...
...
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