From b7b7787222d1781ccb53b40ca0f5f1ea70e1f8f2 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 7 Feb 2017 11:50:30 +0300 Subject: [PATCH] [PE] Add alternative text for tables. --- .../main/app/view/TableSettingsAdvanced.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js b/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js index dc04c6e87..a766177dd 100644 --- a/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js @@ -311,7 +311,6 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem } me.isAltDescChanged = true; }); - this.btnsCategory[1].setVisible(false); this.afterRender(); }, @@ -327,10 +326,10 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem getSettings: function() { if (this.isAltTitleChanged) - this._changedProps.asc_putTitle(this.inputAltTitle.getValue()); + this._changedProps.put_TableCaption(this.inputAltTitle.getValue()); if (this.isAltDescChanged) - this._changedProps.asc_putDescription(this.textareaAltDescription.val()); + this._changedProps.put_TableDescription(this.textareaAltDescription.val()); return { tableProps: this._changedProps }; }, @@ -374,11 +373,11 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem this.fillMargins(this.CellMargins.Flag); - // var value = props.asc_getTitle(); - // this.inputAltTitle.setValue(value ? value : ''); - // - // value = props.asc_getDescription(); - // this.textareaAltDescription.val(value ? value : ''); + var value = props.get_TableCaption(); + this.inputAltTitle.setValue(value ? value : ''); + + value = props.get_TableDescription(); + this.textareaAltDescription.val(value ? value : ''); this._changedProps = new Asc.CTableProp(); }