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
e76d4e7a
Commit
e76d4e7a
authored
8 years ago
by
GoshaZotov
Committed by
Alexander.Trofimov
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change function clearFilterColumn
parent
29f695b1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
cell/model/autofilters.js
cell/model/autofilters.js
+6
-4
No files found.
cell/model/autofilters.js
View file @
e76d4e7a
...
@@ -2431,14 +2431,14 @@
...
@@ -2431,14 +2431,14 @@
{
{
var
rangeCellId
=
this
.
_idToRange
(
cellId
);
var
rangeCellId
=
this
.
_idToRange
(
cellId
);
var
colId
=
autoFilter
.
Ref
.
c2
-
rangeCellId
.
c1
;
var
colId
=
rangeCellId
.
c1
-
autoFilter
.
Ref
.
c1
;
res
=
this
.
_getTrueColId
(
filter
,
colId
);
res
=
this
.
_getTrueColId
(
filter
,
colId
);
}
}
return
res
;
return
res
;
},
},
_getIndexByColId
:
function
(
autoFilter
,
c
el
lId
)
_getIndexByColId
:
function
(
autoFilter
,
c
o
lId
)
{
{
var
res
=
null
;
var
res
=
null
;
...
@@ -2446,7 +2446,7 @@
...
@@ -2446,7 +2446,7 @@
{
{
if
(
autoFilter
.
FilterColumns
[
i
].
ColId
===
colId
)
if
(
autoFilter
.
FilterColumns
[
i
].
ColId
===
colId
)
{
{
index
=
i
;
res
=
i
;
break
;
break
;
}
}
}
}
...
@@ -4339,10 +4339,12 @@
...
@@ -4339,10 +4339,12 @@
if
(
colId
!==
null
)
if
(
colId
!==
null
)
{
{
var
index
=
this
.
_getIndexByColId
(
f
ilter
,
colId
);
var
index
=
this
.
_getIndexByColId
(
autoF
ilter
,
colId
);
this
.
_openHiddenRowsAfterDeleteColumn
(
autoFilter
,
colId
);
this
.
_openHiddenRowsAfterDeleteColumn
(
autoFilter
,
colId
);
autoFilter
.
FilterColumns
.
splice
(
index
,
1
);
autoFilter
.
FilterColumns
.
splice
(
index
,
1
);
this
.
_resetTablePartStyle
();
}
}
return
filter
.
Ref
;
return
filter
.
Ref
;
...
...
This diff is collapsed.
Click to expand it.
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