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
0901d119
Commit
0901d119
authored
May 27, 2021
by
Prakhar Agarwal
🎯
Browse files
fixed msg not sending bug
parent
467dd844
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
0901d119
...
...
@@ -1197,14 +1197,15 @@ function menu_send(name) {
$
(
"
#canvas-option
"
).
prop
(
"
checked
"
,
true
);
}
$
(
"
#message-modal
"
).
modal
(
"
show
"
);
$
(
"
#send-message-btn
"
).
click
(
function
()
{
$
(
"
#send-message-btn
"
).
on
(
"
click
"
,
function
()
{
message
=
$
(
"
#message-text
"
).
val
();
$
(
"
#message-text
"
).
val
(
""
);
$
(
"
#message-modal
"
).
modal
(
"
hide
"
);
if
(
message
!=
undefined
&&
message
.
length
)
{
post
(
"
Sending message to Pd:
"
+
message
+
"
;
"
);
pdsend
(
message
);
}
});
if
(
message
!=
undefined
&&
message
.
length
)
{
post
(
"
Sending message to Pd:
"
+
message
+
"
;
"
);
pdsend
(
message
);
}
}
// requires nw.js API (Menuitem)
...
...
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