0.0.72
This commit is contained in:
@@ -76,16 +76,18 @@ function check_new_messages (window,it){
|
|||||||
// enctype: 'json',
|
// enctype: 'json',
|
||||||
data: JSON.stringify(data),
|
data: JSON.stringify(data),
|
||||||
success: function(data){
|
success: function(data){
|
||||||
|
if (data.html){
|
||||||
if (data.msgs_count > 1){
|
if (data.msgs_count > 1){
|
||||||
document.querySelector(".container-messages").innerHTML = data.html;
|
document.querySelector(".container-messages").innerHTML = data.html;
|
||||||
|
} else {
|
||||||
|
document.querySelector(".info_profile").innerHTML = data.html;
|
||||||
|
}
|
||||||
|
if (window === null){
|
||||||
|
clearTimeout(check_msg)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
document.querySelector(".info_profile").innerHTML = data.html;
|
//
|
||||||
}
|
}
|
||||||
if (window === null){
|
|
||||||
clearTimeout(check_msg)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function (data){
|
error: function (data){
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
{# {% endfor %}#}
|
{# {% endfor %}#}
|
||||||
{# {% endif %}#}
|
{# {% endif %}#}
|
||||||
{# </div>#}
|
{# </div>#}
|
||||||
<div class="container-messages" data-user-id="{{ user.id }}" data-cur-receiver="{{ cur_receiver.id }}" data-ticket-id='null'>
|
<div class="container-messages" data-user-id="{{ user.id }}" data-cur-receiver="{{ cur_receiver.id }}" data-ticket-id='{{ ticket.id }}'>
|
||||||
{% include "blocks/profile/b_messages_container.html" %}
|
{% include "blocks/profile/b_messages_container.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user