소스 검색

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 년 전
부모
커밋
fec8f4e005
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      modules/UI/videolayout/LocalVideo.js

+ 2
- 2
modules/UI/videolayout/LocalVideo.js 파일 보기

@@ -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…
취소
저장