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
74d2cff1
Commit
74d2cff1
authored
May 19, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Изменения в подсветке дефолтного цвета шрифта для фильтров и сортировки.
parent
fd7d2bcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js
apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js
+9
-5
No files found.
apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js
View file @
74d2cff1
...
...
@@ -704,7 +704,7 @@ define([
el
:
$
(
'
#filter-dlg-filter-cells-color
'
),
colors
:
[]
});
this
.
mnuFilterColorCellsPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onFilterColorSelect
,
this
,
null
));
this
.
mnuFilterColorCellsPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onFilterColorSelect
,
this
,
true
));
this
.
mnuFilterColorFontPicker
=
new
Common
.
UI
.
ColorPaletteExt
({
el
:
$
(
'
#filter-dlg-filter-font-color
'
),
...
...
@@ -933,8 +933,8 @@ define([
}
var
colorFilter
=
filterObj
.
asc_getFilter
();
colorFilter
.
asc_setCellColor
(
isCellColor
);
colorFilter
.
asc_setCColor
(
color
==
'
transparent
'
?
null
:
Common
.
Utils
.
ThemeColor
.
getRgbColor
(
color
));
colorFilter
.
asc_setCellColor
(
isCellColor
?
null
:
false
);
colorFilter
.
asc_setCColor
(
(
isCellColor
&&
color
==
'
transparent
'
||
!
isCellColor
&&
color
==
'
#000000
'
)
?
null
:
Common
.
Utils
.
ThemeColor
.
getRgbColor
(
color
));
this
.
api
.
asc_applyAutoFilter
(
this
.
configTo
);
...
...
@@ -943,7 +943,8 @@ define([
onSortColorSelect
:
function
(
type
,
picker
,
color
)
{
if
(
this
.
api
&&
this
.
configTo
)
{
this
.
api
.
asc_sortColFilter
(
type
,
this
.
configTo
.
asc_getCellId
(),
this
.
configTo
.
asc_getDisplayName
(),
color
==
'
transparent
'
?
null
:
Common
.
Utils
.
ThemeColor
.
getRgbColor
(
color
));
var
isCellColor
=
(
type
==
Asc
.
c_oAscSortOptions
.
ByColorFill
);
this
.
api
.
asc_sortColFilter
(
type
,
this
.
configTo
.
asc_getCellId
(),
this
.
configTo
.
asc_getDisplayName
(),
(
isCellColor
&&
color
==
'
transparent
'
||
!
isCellColor
&&
color
==
'
#000000
'
)
?
null
:
Common
.
Utils
.
ThemeColor
.
getRgbColor
(
color
));
}
this
.
close
();
},
...
...
@@ -1067,7 +1068,10 @@ define([
if
(
hasColors
)
{
var
colors
=
[];
colorsFont
.
forEach
(
function
(
item
,
index
)
{
if
(
item
)
colors
.
push
(
Common
.
Utils
.
ThemeColor
.
getHexColor
(
item
.
get_r
(),
item
.
get_g
(),
item
.
get_b
()).
toLocaleUpperCase
());
else
colors
.
push
(
'
000000
'
);
});
this
.
mnuSortColorFontPicker
.
updateColors
(
colors
);
this
.
mnuFilterColorFontPicker
.
updateColors
(
colors
);
...
...
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