diff --git a/apps/documenteditor/mobile/app/controller/Editor.js b/apps/documenteditor/mobile/app/controller/Editor.js index 548e2e387..1f1c08e41 100644 --- a/apps/documenteditor/mobile/app/controller/Editor.js +++ b/apps/documenteditor/mobile/app/controller/Editor.js @@ -91,7 +91,7 @@ define([ onLaunch: function() { // Device detection var phone = isPhone(); - console.debug('Layout profile:', phone ? 'Phone' : 'Tablet'); + // console.debug('Layout profile:', phone ? 'Phone' : 'Tablet'); Common.SharedSettings.set('android', Framework7.prototype.device.android); Common.SharedSettings.set('phone', phone); diff --git a/apps/documenteditor/mobile/app/controller/edit/EditTable.js b/apps/documenteditor/mobile/app/controller/edit/EditTable.js index 7ad76e130..e4a95f81b 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditTable.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditTable.js @@ -55,7 +55,7 @@ define([ _metricText = Common.Utils.Metric.getCurrentMetricName(), _tableObject = undefined, _tableLook = {}, - _cellBorders = new Asc.CBorders(), + _cellBorders = undefined, _cellBorderColor = '000000', _cellBorderWidth = 0.5; @@ -543,6 +543,8 @@ define([ if (me.api) { var properties = new Asc.CTableProp(); + _cellBorders = _.isUndefined(_cellBorders) ? new Asc.CBorders() : _cellBorders; + properties.put_CellBorders(_cellBorders); properties.put_CellSelect(true); diff --git a/apps/presentationeditor/mobile/app/controller/Editor.js b/apps/presentationeditor/mobile/app/controller/Editor.js index 92c3b0830..b666c2a84 100644 --- a/apps/presentationeditor/mobile/app/controller/Editor.js +++ b/apps/presentationeditor/mobile/app/controller/Editor.js @@ -91,7 +91,7 @@ define([ onLaunch: function() { // Device detection var phone = isPhone(); - console.debug('Layout profile:', phone ? 'Phone' : 'Tablet'); + // console.debug('Layout profile:', phone ? 'Phone' : 'Tablet'); Common.SharedSettings.set('android', Framework7.prototype.device.android); Common.SharedSettings.set('phone', phone); diff --git a/apps/spreadsheeteditor/mobile/app/controller/Editor.js b/apps/spreadsheeteditor/mobile/app/controller/Editor.js index 53738c074..efee1f646 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Editor.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Editor.js @@ -90,7 +90,7 @@ define([ onLaunch: function() { // Device detection var phone = isPhone(); - console.debug('Layout profile:', phone ? 'Phone' : 'Tablet'); + // console.debug('Layout profile:', phone ? 'Phone' : 'Tablet'); Common.SharedSettings.set('android', Framework7.prototype.device.android); Common.SharedSettings.set('phone', phone);