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
fdef5c51
Commit
fdef5c51
authored
Oct 10, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ previous changes
parent
2bfeac48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+1
-1
cell/model/autofilters.js
cell/model/autofilters.js
+1
-0
No files found.
cell/model/WorkbookElems.js
View file @
fdef5c51
...
@@ -5654,7 +5654,7 @@ TableColumn.prototype.generateTotalsRowLabel = function(){
...
@@ -5654,7 +5654,7 @@ TableColumn.prototype.generateTotalsRowLabel = function(){
};
};
TableColumn
.
prototype
.
generateTotalsRowFunction
=
function
(
ws
,
tablePart
){
TableColumn
.
prototype
.
generateTotalsRowFunction
=
function
(
ws
,
tablePart
){
//TODO добавить в перевод
//TODO добавить в перевод
if
(
this
.
TotalsRowFunction
===
nul
l
)
if
(
null
===
this
.
TotalsRowFunction
&&
null
===
this
.
TotalsRowLabe
l
)
{
{
this
.
TotalsRowFunction
=
Asc
.
ETotalsRowFunction
.
totalrowfunctionCustom
;
this
.
TotalsRowFunction
=
Asc
.
ETotalsRowFunction
.
totalrowfunctionCustom
;
this
.
setTotalsRowFormula
(
"
SUBTOTAL(109,
"
+
tablePart
.
DisplayName
+
"
[
"
+
this
.
Name
+
"
])
"
,
ws
);
this
.
setTotalsRowFormula
(
"
SUBTOTAL(109,
"
+
tablePart
.
DisplayName
+
"
[
"
+
this
.
Name
+
"
])
"
,
ws
);
...
...
cell/model/autofilters.js
View file @
fdef5c51
...
@@ -3020,6 +3020,7 @@
...
@@ -3020,6 +3020,7 @@
else
else
{
{
tableColumn
.
setTotalsRowLabel
(
label
);
tableColumn
.
setTotalsRowLabel
(
label
);
cell
.
setType
(
CellValueType
.
String
);
}
}
this
.
_addHistoryObj
({
nCol
:
cell
.
bbox
.
c1
,
nRow
:
cell
.
bbox
.
r1
,
formula
:
oldFormula
,
val
:
oldLabel
},
AscCH
.
historyitem_AutoFilter_ChangeTotalRow
,
{
activeCells
:
range
,
nCol
:
cell
.
bbox
.
c1
,
nRow
:
cell
.
bbox
.
r1
,
formula
:
formula
,
val
:
label
});
this
.
_addHistoryObj
({
nCol
:
cell
.
bbox
.
c1
,
nRow
:
cell
.
bbox
.
r1
,
formula
:
oldFormula
,
val
:
oldLabel
},
AscCH
.
historyitem_AutoFilter_ChangeTotalRow
,
{
activeCells
:
range
,
nCol
:
cell
.
bbox
.
c1
,
nRow
:
cell
.
bbox
.
r1
,
formula
:
formula
,
val
:
label
});
...
...
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