diff --git a/apps/documenteditor/mobile/src/controller/Toolbar.jsx b/apps/documenteditor/mobile/src/controller/Toolbar.jsx index f8e1736968..5eecef256f 100644 --- a/apps/documenteditor/mobile/src/controller/Toolbar.jsx +++ b/apps/documenteditor/mobile/src/controller/Toolbar.jsx @@ -285,7 +285,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/documenteditor/mobile/src/controller/settings/DocumentInfo.jsx b/apps/documenteditor/mobile/src/controller/settings/DocumentInfo.jsx index fb5ae6b120..35c009ecde 100644 --- a/apps/documenteditor/mobile/src/controller/settings/DocumentInfo.jsx +++ b/apps/documenteditor/mobile/src/controller/settings/DocumentInfo.jsx @@ -183,7 +183,7 @@ class DocumentInfoController extends Component { ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx index cfef236370..0da53fad47 100644 --- a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx @@ -119,7 +119,7 @@ const SettingsController = props => { ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/presentationeditor/mobile/src/controller/Toolbar.jsx b/apps/presentationeditor/mobile/src/controller/Toolbar.jsx index 8021d275e3..739d64cfeb 100644 --- a/apps/presentationeditor/mobile/src/controller/Toolbar.jsx +++ b/apps/presentationeditor/mobile/src/controller/Toolbar.jsx @@ -195,7 +195,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeFocusObjects' ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/presentationeditor/mobile/src/controller/settings/Settings.jsx b/apps/presentationeditor/mobile/src/controller/settings/Settings.jsx index a8ff0da7de..49322a20d9 100644 --- a/apps/presentationeditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/presentationeditor/mobile/src/controller/settings/Settings.jsx @@ -100,7 +100,7 @@ const SettingsController = props => { ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx b/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx index 7794d8524b..b789b07842 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx @@ -213,7 +213,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeSpreadsheetIn ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/spreadsheeteditor/mobile/src/controller/settings/Settings.jsx b/apps/spreadsheeteditor/mobile/src/controller/settings/Settings.jsx index c5449e6a06..1c4bfcb32f 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/settings/Settings.jsx @@ -117,7 +117,7 @@ const SettingsController = inject('storeAppOptions', 'storeSpreadsheetInfo')(obs ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/visioeditor/mobile/src/controller/Toolbar.jsx b/apps/visioeditor/mobile/src/controller/Toolbar.jsx index 8cc70c2fd6..2481f7d3ec 100644 --- a/apps/visioeditor/mobile/src/controller/Toolbar.jsx +++ b/apps/visioeditor/mobile/src/controller/Toolbar.jsx @@ -151,7 +151,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeToolbarSettin ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title'); diff --git a/apps/visioeditor/mobile/src/controller/settings/Settings.jsx b/apps/visioeditor/mobile/src/controller/settings/Settings.jsx index 79413eb0eb..f099f6f8ea 100644 --- a/apps/visioeditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/visioeditor/mobile/src/controller/settings/Settings.jsx @@ -100,7 +100,7 @@ const SettingsController = props => { ], on: { opened: () => { - const nameDoc = docTitle.split('.')[0]; + const nameDoc = docTitle.slice(0, docTitle.lastIndexOf(".")); const titleField = document.querySelector('#modal-title'); const btnChangeTitle = document.querySelector('.btn-change-title');