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){ setDocTitle: function(name){
if(name) var width = this.getTextWidth(name || $labelDocName.val());
$labelDocName.val(name);
else
name = $labelDocName.val();
var width = this.getTextWidth(name);
(width>=0) && $labelDocName.width(width); (width>=0) && $labelDocName.width(width);
name && (width>=0) && $labelDocName.val(name);
if (this._showImgCrypted && width>=0) { if (this._showImgCrypted && width>=0) {
this.imgCrypted.toggleClass('hidden', false); this.imgCrypted.toggleClass('hidden', false);
this._showImgCrypted = false; this._showImgCrypted = false;