[SSE] Debug adding alternative text for tables.
This commit is contained in:
parent
7d7f797bf7
commit
423c39d110
|
@ -302,13 +302,8 @@ define([
|
||||||
tableProps: me._originalProps,
|
tableProps: me._originalProps,
|
||||||
api: me.api,
|
api: me.api,
|
||||||
handler: function(result, value) {
|
handler: function(result, value) {
|
||||||
if (result == 'ok') {
|
if (result == 'ok' && me.api && value) {
|
||||||
if (me.api) {
|
me.api.asc_changeFormatTableInfo(me._state.TableName, Asc.c_oAscChangeTableStyleInfo.advancedSettings, value);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('edit:complete', me);
|
Common.NotificationCenter.trigger('edit:complete', me);
|
||||||
|
|
|
@ -115,10 +115,14 @@ define([ 'text!spreadsheeteditor/main/app/template/TableSettingsAdvanced.temp
|
||||||
},
|
},
|
||||||
|
|
||||||
getSettings: function() {
|
getSettings: function() {
|
||||||
return { tableProps: {
|
if (this.isAltTitleChanged || this.isAltDescChanged) {
|
||||||
altTitle: (this.isAltTitleChanged) ? this.inputAltTitle.getValue() : undefined,
|
var info = new Asc.AdvancedTableInfoSettings();
|
||||||
altDescription: (this.isAltDescChanged) ? this.textareaAltDescription.val(): undefined
|
if (this.isAltTitleChanged)
|
||||||
}} ;
|
info.asc_setTitle(this.inputAltTitle.getValue());
|
||||||
|
if (this.isAltDescChanged)
|
||||||
|
info.asc_setDescription(this.textareaAltDescription.val());
|
||||||
|
return info;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
textTitle: 'Table - Advanced Settings',
|
textTitle: 'Table - Advanced Settings',
|
||||||
|
|
Loading…
Reference in a new issue