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
fb21bd00
Commit
fb21bd00
authored
Feb 15, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Fix Bug 34065.
parent
47ea8cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
+18
-0
No files found.
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
View file @
fb21bd00
...
...
@@ -275,6 +275,24 @@ define([
if
(
this
.
_state
.
hasSymbols
)
this
.
cmbSymbols
.
setValue
(
props
.
formatInfo
.
asc_getSymbol
());
if
(
props
.
format
)
{
if
(
this
.
_state
.
hasNegative
)
{
var
selectedItem
=
this
.
cmbNegative
.
store
.
findWhere
({
value
:
props
.
format
});
if
(
selectedItem
)
this
.
cmbNegative
.
selectRecord
(
selectedItem
);
else
this
.
cmbNegative
.
setValue
(
this
.
api
.
asc_getLocaleExample
(
props
.
format
));
}
else
if
(
this
.
_state
.
hasType
)
{
var
selectedItem
=
this
.
cmbType
.
store
.
findWhere
({
value
:
props
.
format
});
if
(
selectedItem
)
this
.
cmbType
.
selectRecord
(
selectedItem
);
else
if
(
props
.
formatInfo
.
asc_getType
()
==
Asc
.
c_oAscNumFormatType
.
Fraction
)
this
.
cmbType
.
setValue
(
this
.
txtCustom
);
else
this
.
cmbType
.
setValue
(
this
.
api
.
asc_getLocaleExample
(
props
.
format
),
37973
);
}
this
.
Format
=
props
.
format
;
}
// for fraction - if props.format not in cmbType - setValue(this.txtCustom)
// for date/time - if props.format not in cmbType - setValue(this.api.asc_getLocaleExample(props.format, 37973))
// for cmbNegative - if props.format not in cmbNegative - setValue(this.api.asc_getLocaleExample(props.format))
...
...
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