Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
fd4a0bcd
Commit
fd4a0bcd
authored
Feb 20, 2017
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for currency button
parent
ac1398dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+14
-12
No files found.
cell/model/WorkbookElems.js
View file @
fd4a0bcd
...
@@ -1234,18 +1234,20 @@ Num.prototype =
...
@@ -1234,18 +1234,20 @@ Num.prototype =
break
;
break
;
}
}
}
else
{
}
else
{
//todo currencyLocale true/false?
var
currencyLocale
=
true
;
switch
(
this
.
id
)
{
switch
(
this
.
id
)
{
case
5
:
case
5
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
true
,
fals
e
,
false
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
true
,
currencyLocal
e
,
false
);
break
;
break
;
case
6
:
case
6
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
true
,
fals
e
,
true
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
true
,
currencyLocal
e
,
true
);
break
;
break
;
case
7
:
case
7
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
true
,
fals
e
,
false
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
true
,
currencyLocal
e
,
false
);
break
;
break
;
case
8
:
case
8
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
true
,
fals
e
,
true
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
true
,
currencyLocal
e
,
true
);
break
;
break
;
case
14
:
case
14
:
res
=
AscCommon
.
getShortDateFormat
(
null
);
res
=
AscCommon
.
getShortDateFormat
(
null
);
...
@@ -1262,28 +1264,28 @@ Num.prototype =
...
@@ -1262,28 +1264,28 @@ Num.prototype =
res
=
AscCommon
.
getShortDateFormat
(
null
);
res
=
AscCommon
.
getShortDateFormat
(
null
);
break
;
break
;
case
37
:
case
37
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
false
,
fals
e
,
false
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
false
,
currencyLocal
e
,
false
);
break
;
break
;
case
38
:
case
38
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
false
,
fals
e
,
true
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
0
,
false
,
currencyLocal
e
,
true
);
break
;
break
;
case
39
:
case
39
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
false
,
fals
e
,
false
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
false
,
currencyLocal
e
,
false
);
break
;
break
;
case
40
:
case
40
:
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
false
,
fals
e
,
true
);
res
=
AscCommon
.
getCurrencyFormatSimple
(
null
,
2
,
false
,
currencyLocal
e
,
true
);
break
;
break
;
case
41
:
case
41
:
res
=
AscCommon
.
getCurrencyFormat
(
null
,
0
,
false
,
fals
e
);
res
=
AscCommon
.
getCurrencyFormat
(
null
,
0
,
false
,
currencyLocal
e
);
break
;
break
;
case
42
:
case
42
:
res
=
AscCommon
.
getCurrencyFormat
(
null
,
0
,
true
,
fals
e
);
res
=
AscCommon
.
getCurrencyFormat
(
null
,
0
,
true
,
currencyLocal
e
);
break
;
break
;
case
43
:
case
43
:
res
=
AscCommon
.
getCurrencyFormat
(
null
,
2
,
false
,
fals
e
);
res
=
AscCommon
.
getCurrencyFormat
(
null
,
2
,
false
,
currencyLocal
e
);
break
;
break
;
case
44
:
case
44
:
res
=
AscCommon
.
getCurrencyFormat
(
null
,
2
,
true
,
fals
e
);
res
=
AscCommon
.
getCurrencyFormat
(
null
,
2
,
true
,
currencyLocal
e
);
break
;
break
;
}
}
}
}
...
...
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