Commit b7b77872 authored by Julia Radzhabova's avatar Julia Radzhabova

[PE] Add alternative text for tables.

parent 423c39d1
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment