[SSE] Add alternative text for tables.

This commit is contained in:
Julia Radzhabova 2017-02-06 17:02:11 +03:00
parent 1eae40c65b
commit e441f92b31
3 changed files with 11 additions and 8 deletions

View file

@ -73,12 +73,12 @@
<div id="table-btn-edit" style="display: inline-block; float:right;"></div> <div id="table-btn-edit" style="display: inline-block; float:right;"></div>
</td> </td>
</tr> </tr>
<tr class="hidden"> <tr>
<td class="padding-small" colspan=2> <td class="padding-small" colspan=2>
<div class="separator horizontal"></div> <div class="separator horizontal"></div>
</td> </td>
</tr> </tr>
<tr class="hidden"> <tr>
<td align="center" colspan=2> <td align="center" colspan=2>
<label class="link" id="table-advanced-link"><%= scope.textAdvanced %></label> <label class="link" id="table-advanced-link"><%= scope.textAdvanced %></label>
</td> </td>

View file

@ -304,7 +304,10 @@ define([
handler: function(result, value) { handler: function(result, value) {
if (result == 'ok') { if (result == 'ok') {
if (me.api) { 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);
} }
} }

View file

@ -106,11 +106,11 @@ define([ 'text!spreadsheeteditor/main/app/template/TableSettingsAdvanced.temp
_setDefaults: function(props) { _setDefaults: function(props) {
if (props ){ if (props ){
// var value = props.asc_getTitle(); var value = props.asc_getTitle();
// this.inputAltTitle.setValue(value ? value : ''); this.inputAltTitle.setValue(value ? value : '');
//
// value = props.asc_getDescription(); value = props.asc_getDescription();
// this.textareaAltDescription.val(value ? value : ''); this.textareaAltDescription.val(value ? value : '');
} }
}, },