mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
do not duplicatd in progress msg
This commit is contained in:
parent
697300b575
commit
b9641345a1
2 changed files with 16 additions and 3 deletions
|
@ -87,6 +87,9 @@
|
|||
jQuery('.discussion-container #load-message-spinner').remove();
|
||||
jQuery('.discussion-container #send-message-spinner').remove();
|
||||
|
||||
//We also remove all in-progress messages because they are added again in the new response if not sended yet, and if sended they should not appear in double
|
||||
jQuery('.discussion-container .message-in-progress-container').remove();
|
||||
|
||||
$.each(data.messages, function(key, message) {
|
||||
|
||||
<?php if ($_SESSION['user']['settings']['detect_url']) { ?>
|
||||
|
@ -146,7 +149,7 @@
|
|||
break;
|
||||
case 'inprogress' :
|
||||
var texte = '' +
|
||||
'<div class="clearfix message-container">' +
|
||||
'<div class="clearfix message-container message-in-progress-container">' +
|
||||
'<div class="discussion-message message-sended">' +
|
||||
'<div class="message-in-progress-hover"><i class="fa fa-spinner fa-spin"></i></div>' +
|
||||
'<div class="discussion-message-text">' + message.text + '</div>' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue