Browse Source

Merge pull request #1105 from jitsi/fix_frozen_msg

fix(LargeVideoManager): frozen displayname in a msg
master
Дамян Минков 8 years ago
parent
commit
317f0e736c
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      modules/UI/videolayout/LargeVideoManager.js

+ 4
- 5
modules/UI/videolayout/LargeVideoManager.js View File

382
             $('#remoteConnectionMessage')
382
             $('#remoteConnectionMessage')
383
                 .attr("data-i18n", msgKey)
383
                 .attr("data-i18n", msgKey)
384
                 .attr("data-i18n-options", JSON.stringify(msgOptions));
384
                 .attr("data-i18n-options", JSON.stringify(msgOptions));
385
-            APP.translation.translateElement($('#remoteConnectionMessage'));
385
+            APP.translation.translateElement(
386
+                $('#remoteConnectionMessage'), msgOptions);
386
         }
387
         }
387
 
388
 
388
         this.videoContainer.positionRemoteConnectionMessage();
389
         this.videoContainer.positionRemoteConnectionMessage();
394
      *
395
      *
395
      * @param {string} msgKey the translation key which will be used to get
396
      * @param {string} msgKey the translation key which will be used to get
396
      * the message text to be displayed on the large video.
397
      * the message text to be displayed on the large video.
397
-     * @param {object} msgOptions translation options object
398
      *
398
      *
399
      * @private
399
      * @private
400
      */
400
      */
401
-    _setLocalConnectionMessage (msgKey, msgOptions) {
401
+    _setLocalConnectionMessage (msgKey) {
402
         $('#localConnectionMessage')
402
         $('#localConnectionMessage')
403
-            .attr("data-i18n", msgKey)
404
-            .attr("data-i18n-options", JSON.stringify(msgOptions));
403
+            .attr("data-i18n", msgKey);
405
         APP.translation.translateElement($('#localConnectionMessage'));
404
         APP.translation.translateElement($('#localConnectionMessage'));
406
     }
405
     }
407
 
406
 

Loading…
Cancel
Save