diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index d37841fab5..8bd418ea4e 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -1136,7 +1136,7 @@ define([ var appname = (this.api) ? this.api.asc_getAppProps() : null; if (appname) { - appname = (appname.asc_getApplication() || '') + ' ' + (appname.asc_getAppVersion() || ''); + appname = (appname.asc_getApplication() || '') + (appname.asc_getAppVersion() ? ' ' : '') + (appname.asc_getAppVersion() || ''); this.lblApplication.text(appname); } this._ShowHideInfoItem(this.lblApplication, !!appname); diff --git a/apps/documenteditor/mobile/app/controller/Settings.js b/apps/documenteditor/mobile/app/controller/Settings.js index 2787d84553..d476fae335 100644 --- a/apps/documenteditor/mobile/app/controller/Settings.js +++ b/apps/documenteditor/mobile/app/controller/Settings.js @@ -442,7 +442,7 @@ define([ var appProps = (this.api) ? this.api.asc_getAppProps() : null; if (appProps) { - var appName = (appProps.asc_getApplication() || '') + ' ' + (appProps.asc_getAppVersion() || ''); + var appName = (appProps.asc_getApplication() || '') + (appProps.asc_getAppVersion() ? ' ' : '') + (appProps.asc_getAppVersion() || ''); appName ? $('#settings-doc-application').html(appName) : $('.display-application').remove(); } var props = (this.api) ? this.api.asc_getCoreProps() : null; diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index 6b4d09073e..aa802e4ec3 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -1007,7 +1007,7 @@ define([ var appname = (this.api) ? this.api.asc_getAppProps() : null; if (appname) { - appname = (appname.asc_getApplication() || '') + ' ' + (appname.asc_getAppVersion() || ''); + appname = (appname.asc_getApplication() || '') + (appname.asc_getAppVersion() ? ' ' : '') + (appname.asc_getAppVersion() || ''); this.lblApplication.text(appname); } this._ShowHideInfoItem(this.lblApplication, !!appname); diff --git a/apps/presentationeditor/mobile/app/controller/Settings.js b/apps/presentationeditor/mobile/app/controller/Settings.js index 4d3f3d1b3c..ee921a5bbc 100644 --- a/apps/presentationeditor/mobile/app/controller/Settings.js +++ b/apps/presentationeditor/mobile/app/controller/Settings.js @@ -226,7 +226,7 @@ define([ var appProps = (this.api) ? this.api.asc_getAppProps() : null; if (appProps) { - var appName = (appProps.asc_getApplication() || '') + ' ' + (appProps.asc_getAppVersion() || ''); + var appName = (appProps.asc_getApplication() || '') + (appProps.asc_getAppVersion() ? ' ' : '') + (appProps.asc_getAppVersion() || ''); appName ? $('#settings-pe-application').html(appName) : $('.display-application').remove(); } diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 6660c975cc..4a58c46b08 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1862,7 +1862,7 @@ define([ var appname = (this.api) ? this.api.asc_getAppProps() : null; if (appname) { - appname = (appname.asc_getApplication() || '') + ' ' + (appname.asc_getAppVersion() || ''); + appname = (appname.asc_getApplication() || '') + (appname.asc_getAppVersion() ? ' ' : '') + (appname.asc_getAppVersion() || ''); this.lblApplication.text(appname); } this._ShowHideInfoItem(this.lblApplication, !!appname); diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index 4a00052173..ab7d32a02e 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -295,7 +295,7 @@ define([ var appProps = (this.api) ? this.api.asc_getAppProps() : null; if (appProps) { - var appName = (appProps.asc_getApplication() || '') + ' ' + (appProps.asc_getAppVersion() || ''); + var appName = (appProps.asc_getApplication() || '') + (appProps.asc_getAppVersion() ? ' ' : '') + (appProps.asc_getAppVersion() || ''); appName ? $('#settings-sse-application').html(appName) : $('.display-application').remove(); }