Fix document title on loading

This commit is contained in:
Julia Radzhabova 2022-09-16 00:20:50 +03:00
parent f90e8cb048
commit 5f95f0facc

View file

@ -791,12 +791,9 @@ define([
},
setDocTitle: function(name){
if(name)
$labelDocName.val(name);
else
name = $labelDocName.val();
var width = this.getTextWidth(name);
var width = this.getTextWidth(name || $labelDocName.val());
(width>=0) && $labelDocName.width(width);
name && (width>=0) && $labelDocName.val(name);
if (this._showImgCrypted && width>=0) {
this.imgCrypted.toggleClass('hidden', false);
this._showImgCrypted = false;