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
0df0720f
Commit
0df0720f
authored
Mar 23, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Change value for example in the format settings dialog.
parent
49185ef6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
+3
-3
No files found.
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
View file @
0df0720f
...
...
@@ -291,12 +291,12 @@ define([
else
if
(
props
.
formatInfo
.
asc_getType
()
==
Asc
.
c_oAscNumFormatType
.
Time
)
this
.
cmbType
.
setValue
(
this
.
api
.
asc_getLocaleExample
(
props
.
format
,
1.534
));
else
this
.
cmbType
.
setValue
(
this
.
api
.
asc_getLocaleExample
(
props
.
format
,
3
7973
));
this
.
cmbType
.
setValue
(
this
.
api
.
asc_getLocaleExample
(
props
.
format
,
3
8822
));
}
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, 3
7973
))
// for date/time - if props.format not in cmbType - setValue(this.api.asc_getLocaleExample(props.format, 3
8822
))
// for cmbNegative - if props.format not in cmbNegative - setValue(this.api.asc_getLocaleExample(props.format))
}
},
...
...
@@ -441,7 +441,7 @@ define([
var
formatsarr
=
this
.
api
.
asc_getFormatCells
(
info
),
data
=
[],
exampleVal
=
(
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Date
)
?
3
7973
:
((
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Time
)
?
1.534
:
parseFloat
(
"
-1234.12345678901234567890
"
));
exampleVal
=
(
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Date
)
?
3
8822
:
((
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Time
)
?
1.534
:
parseFloat
(
"
-1234.12345678901234567890
"
));
formatsarr
.
forEach
(
function
(
item
)
{
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample
(
item
,
exampleVal
)});
});
...
...
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