From e441f92b310ef8a35b368e3e3fa4a9a83395b192 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 6 Feb 2017 17:02:11 +0300 Subject: [PATCH] [SSE] Add alternative text for tables. --- .../main/app/template/TableSettings.template | 4 ++-- apps/spreadsheeteditor/main/app/view/TableSettings.js | 5 ++++- .../main/app/view/TableSettingsAdvanced.js | 10 +++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/template/TableSettings.template b/apps/spreadsheeteditor/main/app/template/TableSettings.template index 0e5a32083..76d313084 100644 --- a/apps/spreadsheeteditor/main/app/template/TableSettings.template +++ b/apps/spreadsheeteditor/main/app/template/TableSettings.template @@ -73,12 +73,12 @@
- +
- + diff --git a/apps/spreadsheeteditor/main/app/view/TableSettings.js b/apps/spreadsheeteditor/main/app/view/TableSettings.js index f9430b7e9..8bfa6b075 100644 --- a/apps/spreadsheeteditor/main/app/view/TableSettings.js +++ b/apps/spreadsheeteditor/main/app/view/TableSettings.js @@ -304,7 +304,10 @@ define([ handler: function(result, value) { if (result == 'ok') { if (me.api) { - // me.api.asc_setGraphicObjectProps(value.tableProps); + if (value.tableProps.altTitle) + me.api.asc_changeFormatTableInfo(me._state.TableName, Asc.c_oAscChangeTableStyleInfo.title, value.tableProps.altTitle); + if (value.tableProps.altDescription) + me.api.asc_changeFormatTableInfo(me._state.TableName, Asc.c_oAscChangeTableStyleInfo.description , value.tableProps.altDescription); } } diff --git a/apps/spreadsheeteditor/main/app/view/TableSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/TableSettingsAdvanced.js index b49a875ee..1a7f58346 100644 --- a/apps/spreadsheeteditor/main/app/view/TableSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/TableSettingsAdvanced.js @@ -106,11 +106,11 @@ define([ 'text!spreadsheeteditor/main/app/template/TableSettingsAdvanced.temp _setDefaults: function(props) { if (props ){ - // var value = props.asc_getTitle(); - // this.inputAltTitle.setValue(value ? value : ''); - // - // value = props.asc_getDescription(); - // this.textareaAltDescription.val(value ? value : ''); + var value = props.asc_getTitle(); + this.inputAltTitle.setValue(value ? value : ''); + + value = props.asc_getDescription(); + this.textareaAltDescription.val(value ? value : ''); } },