Fix document title on loading
This commit is contained in:
parent
f90e8cb048
commit
5f95f0facc
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue