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.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
$localDisplayName.hide();
|
UIUtil.setVisibility($localDisplayName, false);
|
||||||
$editDisplayName.show();
|
$editDisplayName.show();
|
||||||
$editDisplayName.focus();
|
$editDisplayName.focus();
|
||||||
$editDisplayName.select();
|
$editDisplayName.select();
|
||||||
|
@ -122,7 +122,7 @@ LocalVideo.prototype.setDisplayName = function(displayName) {
|
||||||
$editDisplayName.one("focusout", function () {
|
$editDisplayName.one("focusout", function () {
|
||||||
self.emitter.emit(UIEvents.NICKNAME_CHANGED, this.value);
|
self.emitter.emit(UIEvents.NICKNAME_CHANGED, this.value);
|
||||||
$editDisplayName.hide();
|
$editDisplayName.hide();
|
||||||
$localDisplayName.show();
|
UIUtil.setVisibility($localDisplayName, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$editDisplayName.on('keydown', function (e) {
|
$editDisplayName.on('keydown', function (e) {
|
||||||
|
|
Loading…
Reference in New Issue