Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
423c39d1
Commit
423c39d1
authored
Feb 07, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Debug adding alternative text for tables.
parent
7d7f797b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
apps/spreadsheeteditor/main/app/view/TableSettings.js
apps/spreadsheeteditor/main/app/view/TableSettings.js
+2
-7
apps/spreadsheeteditor/main/app/view/TableSettingsAdvanced.js
.../spreadsheeteditor/main/app/view/TableSettingsAdvanced.js
+8
-4
No files found.
apps/spreadsheeteditor/main/app/view/TableSettings.js
View file @
423c39d1
...
...
@@ -302,13 +302,8 @@ define([
tableProps
:
me
.
_originalProps
,
api
:
me
.
api
,
handler
:
function
(
result
,
value
)
{
if
(
result
==
'
ok
'
)
{
if
(
me
.
api
)
{
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
);
}
if
(
result
==
'
ok
'
&&
me
.
api
&&
value
)
{
me
.
api
.
asc_changeFormatTableInfo
(
me
.
_state
.
TableName
,
Asc
.
c_oAscChangeTableStyleInfo
.
advancedSettings
,
value
);
}
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
me
);
...
...
apps/spreadsheeteditor/main/app/view/TableSettingsAdvanced.js
View file @
423c39d1
...
...
@@ -115,10 +115,14 @@ define([ 'text!spreadsheeteditor/main/app/template/TableSettingsAdvanced.temp
},
getSettings
:
function
()
{
return
{
tableProps
:
{
altTitle
:
(
this
.
isAltTitleChanged
)
?
this
.
inputAltTitle
.
getValue
()
:
undefined
,
altDescription
:
(
this
.
isAltDescChanged
)
?
this
.
textareaAltDescription
.
val
():
undefined
}}
;
if
(
this
.
isAltTitleChanged
||
this
.
isAltDescChanged
)
{
var
info
=
new
Asc
.
AdvancedTableInfoSettings
();
if
(
this
.
isAltTitleChanged
)
info
.
asc_setTitle
(
this
.
inputAltTitle
.
getValue
());
if
(
this
.
isAltDescChanged
)
info
.
asc_setDescription
(
this
.
textareaAltDescription
.
val
());
return
info
;
}
},
textTitle
:
'
Table - Advanced Settings
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment