mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-04 11:04:29 +00:00
add check to newRtMsg() to avoid undefined sig_userpost
This commit is contained in:
parent
24cb89ba3b
commit
5da5cde79a
@ -285,6 +285,14 @@ function newRtMsg(postData, msg) {
|
||||
sig_userpost = postData.attr('data-content_to_sigrt');
|
||||
}
|
||||
|
||||
if (typeof sig_userpost === 'undefined') {
|
||||
alert(polyglot.t('error',
|
||||
{error: 'can\'t sig_userpost is not deifned'}
|
||||
));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var rtObj = {sig_userpost: sig_userpost, userpost: userpost};
|
||||
|
||||
if (typeof lastPostId !== 'undefined') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user