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:
parent
3ae299cf2b
commit
fec8f4e005
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue