Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
persona-non-google
Commits
0a7adc94
Unverified
Commit
0a7adc94
authored
Sep 13, 2021
by
Anton Grigoryev
Committed by
GitHub
Sep 13, 2021
Browse files
fix: handle multi-send on quick reply (#532)
parent
137c5004
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/modules/quickreply.js
View file @
0a7adc94
...
...
@@ -30,15 +30,23 @@ define('persona/quickreply', [
// data.element.textcomplete(data.strategies, data.options);
// $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%');
var
ready
=
true
;
components
.
get
(
'
topic/quickreply/button
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
();
if
(
!
ready
)
{
return
;
}
var
replyMsg
=
components
.
get
(
'
topic/quickreply/text
'
).
val
();
var
replyData
=
{
tid
:
ajaxify
.
data
.
tid
,
handle
:
undefined
,
content
:
replyMsg
};
ready
=
false
;
api
.
post
(
`/topics/
${
ajaxify
.
data
.
tid
}
`
,
replyData
,
function
(
err
,
data
)
{
ready
=
true
;
if
(
err
)
{
return
app
.
alertError
(
err
.
message
);
}
...
...
Write
Preview
Supports
Markdown
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