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
05e60468
Commit
05e60468
authored
Jan 17, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Debug custom number format.
parent
56e6f1c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
+6
-5
No files found.
apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js
View file @
05e60468
...
...
@@ -95,7 +95,7 @@ define([
'
</td>
'
,
'
<td class="padding-small">
'
,
'
<label class="input-label" style="margin-bottom: -1px;">
'
,
me
.
textSample
,
'
</label>
'
,
'
<label id="format-settings-label-example" style="display: block; font-size: 18px;">100</label>
'
,
'
<label id="format-settings-label-example" style="display: block; font-size: 18px;
max-width: 140px; overflow: hidden; text-overflow: ellipsis;
">100</label>
'
,
'
</td>
'
,
'
</tr>
'
,
'
<tr class="format-decimal">
'
,
...
...
@@ -298,7 +298,7 @@ define([
var
format
=
this
.
api
.
asc_getFormatCells
(
info
),
data
=
[];
format
.
forEach
(
function
(
item
)
{
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
)});
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
,
1234.12345678901234567890
)});
});
this
.
cmbNegative
.
setData
(
data
);
this
.
cmbNegative
.
selectRecord
(
this
.
cmbNegative
.
store
.
at
(
0
));
...
...
@@ -320,7 +320,7 @@ define([
if
(
this
.
FormatType
==
Asc
.
c_oAscNumFormatType
.
Number
||
this
.
FormatType
==
Asc
.
c_oAscNumFormatType
.
Currency
||
this
.
FormatType
==
Asc
.
c_oAscNumFormatType
.
Accounting
)
{
var
data
=
[];
format
.
forEach
(
function
(
item
)
{
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
)});
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
,
1234.12345678901234567890
)});
});
this
.
cmbNegative
.
setData
(
data
);
this
.
cmbNegative
.
selectRecord
(
this
.
cmbNegative
.
store
.
at
(
0
));
...
...
@@ -343,7 +343,7 @@ define([
var
format
=
this
.
api
.
asc_getFormatCells
(
info
),
data
=
[];
format
.
forEach
(
function
(
item
)
{
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
)});
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
,
1234.12345678901234567890
)});
});
this
.
cmbNegative
.
setData
(
data
);
this
.
cmbNegative
.
selectRecord
(
this
.
cmbNegative
.
store
.
at
(
0
));
...
...
@@ -386,9 +386,10 @@ define([
if
(
hasNegative
||
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Date
||
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Time
)
{
var
formatsarr
=
this
.
api
.
asc_getFormatCells
(
info
),
data
=
[],
exampleVal
=
(
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Date
)
?
37973
:
((
record
.
value
==
Asc
.
c_oAscNumFormatType
.
Time
)
?
0.123
:
parseFloat
(
"
1234.12345678901234567890
"
)),
me
=
this
;
formatsarr
.
forEach
(
function
(
item
)
{
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
)});
data
.
push
({
value
:
item
,
displayValue
:
me
.
api
.
asc_getLocaleExample2
(
item
,
exampleVal
)});
});
if
(
hasNegative
)
{
this
.
cmbNegative
.
setData
(
data
);
...
...
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