From 98400da2e288bd8d1da6f6bab610a6d027d5fd05 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 16 Sep 2022 17:24:27 +0300 Subject: [PATCH] Fix document title on loading --- apps/common/main/lib/view/Header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 8b98284ac..f433be058 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -543,7 +543,7 @@ define([ if ( !$labelDocName ) { $labelDocName = $html.find('#rib-doc-name'); if ( me.documentCaption ) { - me.setDocTitle(me.documentCaption); + setTimeout(function() { me.setDocTitle(me.documentCaption); }, 50); } } else { $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 = $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);