parent
7b4c5a0faf
commit
bc8bdf9b8b
|
@ -543,7 +543,7 @@ define([
|
||||||
if ( !$labelDocName ) {
|
if ( !$labelDocName ) {
|
||||||
$labelDocName = $html.find('#rib-doc-name');
|
$labelDocName = $html.find('#rib-doc-name');
|
||||||
if ( me.documentCaption ) {
|
if ( me.documentCaption ) {
|
||||||
me.setDocTitle(me.documentCaption);
|
setTimeout(function() { me.setDocTitle(me.documentCaption); }, 50);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$html.find('#rib-doc-name').hide();
|
$html.find('#rib-doc-name').hide();
|
||||||
|
@ -621,7 +621,7 @@ define([
|
||||||
|
|
||||||
!!$labelDocName && $labelDocName.hide().off(); // hide document title if it was created in right box
|
!!$labelDocName && $labelDocName.hide().off(); // hide document title if it was created in right box
|
||||||
$labelDocName = $html.find('#title-doc-name');
|
$labelDocName = $html.find('#title-doc-name');
|
||||||
me.setDocTitle( me.documentCaption );
|
setTimeout(function() { me.setDocTitle(me.documentCaption); }, 50);
|
||||||
|
|
||||||
me.options.wopi && $labelDocName.attr('maxlength', me.options.wopi.FileNameMaxLength);
|
me.options.wopi && $labelDocName.attr('maxlength', me.options.wopi.FileNameMaxLength);
|
||||||
|
|
||||||
|
@ -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