From fb83027a1e0b8cd4f0c5b33de3199ec3dc64738c Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 24 Dec 2014 13:44:27 +0000 Subject: [PATCH] Truncate operator's avatar in invitation Fixes #96 --- src/mibew/js/source/widget.js | 18 ++++++++++-------- .../styles/invitations/default/invite.css | 7 ++++++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/mibew/js/source/widget.js b/src/mibew/js/source/widget.js index 05ce5756..39ab64dd 100644 --- a/src/mibew/js/source/widget.js +++ b/src/mibew/js/source/widget.js @@ -396,6 +396,16 @@ var Mibew = {}; + '' + '×'; + // Add operator avatar + if (avatarUrl) { + popuptext += '
' + + '' + operatorName
+                + '' + + '
'; + } + // Add operator name if (operatorName) { popuptext += '

' @@ -403,14 +413,6 @@ var Mibew = {}; + '

'; } - // Add operator avatar - if (avatarUrl) { - popuptext += '' + operatorName
-                + ''; - } - // Broadcast message from the thread related with invitation into iframe if (threadUrl) { popuptext += '