Commit c97033a2d5bcee069d237d292f55be2207b3a0eb
1 parent
ec690285
Exists in
master
and in
2 other branches
Adjusting participants modal responsivity
Showing
3 changed files
with
7 additions
and
3 deletions
Show diff stats
amadeus/static/css/base/amadeus_responsive.css
amadeus/static/js/chat.js
... | ... | @@ -116,7 +116,7 @@ function getModalInfo(btn, space, space_type) { |
116 | 116 | $('.chat_badge').each(function () { |
117 | 117 | var actual = $(this).text(); |
118 | 118 | |
119 | - if (actual != "+99") { | |
119 | + if (actual != "+99" && !isNaN(viewed)) { | |
120 | 120 | actual = parseInt(actual, 10) - viewed; |
121 | 121 | |
122 | 122 | if (actual <= 0) { |
... | ... | @@ -141,7 +141,7 @@ function getModalInfo(btn, space, space_type) { |
141 | 141 | var subject_cbadge = $("#subject_" + sub_badge).find('.chat_notify'), |
142 | 142 | actual = subject_cbadge.text(); |
143 | 143 | |
144 | - if (actual != "+99") { | |
144 | + if (actual != "+99" && !isNaN(viewed)) { | |
145 | 145 | actual = parseInt(actual, 10) - viewed; |
146 | 146 | |
147 | 147 | if (actual <= 0) { | ... | ... |
chat/templates/chat/_profile.html
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | {% is_online participant as status %} |
4 | 4 | |
5 | 5 | <div class="modal-dialog" role="document"> |
6 | - <div class="modal-content"> | |
6 | + <div class="modal-content user_info"> | |
7 | 7 | <div class="modal-header"> |
8 | 8 | <button type="button" class="close" data-dismiss="modal" aria-label="{% trans 'Close' %}"><span aria-hidden="true">×</span></button> |
9 | 9 | </div> | ... | ... |