1.1.26 upd msg counter and styles for news
This commit is contained in:
@@ -3304,6 +3304,24 @@ details[open] summary ~ *{
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.self_news_text>ul>li{
|
||||||
|
list-style: disc;
|
||||||
|
|
||||||
|
}
|
||||||
|
.self_news_text>ul{
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
.self_news_text>ol{
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
.self_news_text>ol>li{
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.self_news_text>img{
|
||||||
|
margin: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.self_news_img{
|
.self_news_img{
|
||||||
float: right;
|
float: right;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ function update_count_unread_messages (data) {
|
|||||||
if (!list_unrd_parent[i].classList.contains("showed")){
|
if (!list_unrd_parent[i].classList.contains("showed")){
|
||||||
// list_unrd_parent[i].classList.toggle("showed")
|
// list_unrd_parent[i].classList.toggle("showed")
|
||||||
|
|
||||||
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
// list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
||||||
} else {
|
} else {
|
||||||
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
|
let current_count = parseInt(list_unrd[i].innerHTML);
|
||||||
|
list_unrd[i].innerHTML = (current_count + 1).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ window.onload = function (){
|
|||||||
// }
|
// }
|
||||||
let chats = document.querySelector(`[data-ajax-url='chats']`)
|
let chats = document.querySelector(`[data-ajax-url='chats']`)
|
||||||
if (chats){
|
if (chats){
|
||||||
deleteMarkerMessages()
|
// deleteMarkerMessages()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ function select_tab_profile (el,url,owner_type=null, check_orders_required) {
|
|||||||
if (window.location.href.includes("profile")){
|
if (window.location.href.includes("profile")){
|
||||||
selectTabProfileIfHisNotSelected(url)
|
selectTabProfileIfHisNotSelected(url)
|
||||||
}
|
}
|
||||||
deleteMarkerMessages(el)
|
// deleteMarkerMessages(el)
|
||||||
checkStatesAfterTransitionToAnotherTabProfile()
|
checkStatesAfterTransitionToAnotherTabProfile()
|
||||||
goToChatIfChat()
|
goToChatIfChat()
|
||||||
if (window.location.href.includes("chat") || window.location.href.includes("support")) {
|
if (window.location.href.includes("chat") || window.location.href.includes("support")) {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
{{ user.first_name|truncatechars:6}} {{ user.last_name|truncatechars:5 }}
|
{{ user.first_name|truncatechars:6}} {{ user.last_name|truncatechars:5 }}
|
||||||
</span>
|
</span>
|
||||||
<span id="placeholder1"></span>
|
<span id="placeholder1"></span>
|
||||||
<div class="icon_unread_messages{% if unanswered_msgs_count %} showed{% endif %}" style="position:relative;top: 4px;padding-right: 13px;">
|
<div class="icon_unread_messages{% if unanswered_msgs_count > 0 %} showed{% endif %}" style="position:relative;top: 4px;padding-right: 13px;">
|
||||||
<div class="cost-messages-in-user-tab-messenger" style="background: #FFFFFF;">
|
<div class="cost-messages-in-user-tab-messenger" style="background: #FFFFFF;">
|
||||||
<span class="unredmessages_value_text " style="padding-top: 2px;padding-left: 0;position: relative;top: -8px;color: #FF613A;">{{ unanswered_msgs_count }}</span>
|
<span class="unredmessages_value_text " style="padding-top: 2px;padding-left: 0;position: relative;top: -8px;color: #FF613A;">{{ unanswered_msgs_count }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,9 +24,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ title }}
|
{{ title }}
|
||||||
{% if sel_page_name == 'chat' %}
|
{% if sel_page_name == 'chat' %}
|
||||||
<div class="icon_unread_messages {% if unanswered_msgs_count %}showed{% endif %}" style="padding-top: 0;position:relative;top: 4px;">
|
<div class="icon_unread_messages {% if unanswered_msgs_count > 0 %}showed{% endif %}" style="padding-top: 0;position:relative;top: 4px;">
|
||||||
<div class="cost-messages-in-user-tab-messenger">
|
<div class="cost-messages-in-user-tab-messenger">
|
||||||
<span class="unredmessages_value_text" style="padding-top: 2px;padding-left: 0;position:relative;top: -6px">{{ unanswered_msgs_count }}</span>
|
<span class="unredmessages_value_text" style="padding-top: 8px;padding-left: 0;position:relative;top: -6px">{{ unanswered_msgs_count }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user