Browse Source

Fixes an issue with mixing visibility functions for elements.

In small video we use UIUtil.setVisibility, so we should not use jquery show/hide for the same element.
master
damencho 9 years ago
parent
commit
fec8f4e005
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/UI/videolayout/LocalVideo.js

+ 2
- 2
modules/UI/videolayout/LocalVideo.js View File

@@ -114,7 +114,7 @@ LocalVideo.prototype.setDisplayName = function(displayName) {
114 114
 
115 115
                 e.preventDefault();
116 116
                 e.stopPropagation();
117
-                $localDisplayName.hide();
117
+                UIUtil.setVisibility($localDisplayName, false);
118 118
                 $editDisplayName.show();
119 119
                 $editDisplayName.focus();
120 120
                 $editDisplayName.select();
@@ -122,7 +122,7 @@ LocalVideo.prototype.setDisplayName = function(displayName) {
122 122
                 $editDisplayName.one("focusout", function () {
123 123
                     self.emitter.emit(UIEvents.NICKNAME_CHANGED, this.value);
124 124
                     $editDisplayName.hide();
125
-                    $localDisplayName.show();
125
+                    UIUtil.setVisibility($localDisplayName, true);
126 126
                 });
127 127
 
128 128
                 $editDisplayName.on('keydown', function (e) {

Loading…
Cancel
Save