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.
This commit is contained in:
damencho 2016-10-26 17:36:07 -05:00
parent 3ae299cf2b
commit fec8f4e005
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ LocalVideo.prototype.setDisplayName = function(displayName) {
e.preventDefault();
e.stopPropagation();
$localDisplayName.hide();
UIUtil.setVisibility($localDisplayName, false);
$editDisplayName.show();
$editDisplayName.focus();
$editDisplayName.select();
@ -122,7 +122,7 @@ LocalVideo.prototype.setDisplayName = function(displayName) {
$editDisplayName.one("focusout", function () {
self.emitter.emit(UIEvents.NICKNAME_CHANGED, this.value);
$editDisplayName.hide();
$localDisplayName.show();
UIUtil.setVisibility($localDisplayName, true);
});
$editDisplayName.on('keydown', function (e) {