aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/messages_widget.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/messages_widget.tpl')
-rw-r--r--view/tpl/messages_widget.tpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl
index 83f563db6..ddb21beb5 100644
--- a/view/tpl/messages_widget.tpl
+++ b/view/tpl/messages_widget.tpl
@@ -69,7 +69,9 @@
$(document).ready(function () {
$('.messages-timeago').timeago();
- $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active');
+ if (bParam_mid) {
+ $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active');
+ }
});
$('#messages-widget').on('scroll', function() {
@@ -130,7 +132,9 @@
else {
$('#messages-empty').show();
}
- $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active');
+ if (bParam_mid) {
+ $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active');
+ }
$('#messages-loading').hide();
$('.messages-timeago').timeago();