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
7629b9c7
Commit
7629b9c7
authored
Dec 01, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE mobile] Fixed highlight search results.
parent
1451d68d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
apps/documenteditor/mobile/app/controller/Search.js
apps/documenteditor/mobile/app/controller/Search.js
+8
-5
No files found.
apps/documenteditor/mobile/app/controller/Search.js
View file @
7629b9c7
...
@@ -178,17 +178,18 @@ define([
...
@@ -178,17 +178,18 @@ define([
$inputHighlight
=
$pageSettings
.
find
(
'
#search-highlight-results input:checkbox
'
);
$inputHighlight
=
$pageSettings
.
find
(
'
#search-highlight-results input:checkbox
'
);
$inputType
.
val
([
isReplace
?
'
replace
'
:
'
search
'
]);
$inputType
.
val
([
isReplace
?
'
replace
'
:
'
search
'
]);
$inputCase
.
attr
(
'
checked
'
,
isCaseSensitive
);
$inputCase
.
prop
(
'
checked
'
,
isCaseSensitive
);
$inputHighlight
.
attr
(
'
checked
'
,
isHighlight
);
$inputHighlight
.
prop
(
'
checked
'
,
isHighlight
);
// init events
// init events
$inputType
.
single
(
'
change
'
,
_
.
bind
(
me
.
onTypeChange
,
me
));
$inputType
.
single
(
'
change
'
,
_
.
bind
(
me
.
onTypeChange
,
me
));
$inputCase
.
single
(
'
c
lick
'
,
_
.
bind
(
me
.
onCaseClick
,
me
));
$inputCase
.
single
(
'
c
hange
'
,
_
.
bind
(
me
.
onCaseClick
,
me
));
$inputHighlight
.
single
(
'
c
lick
'
,
_
.
bind
(
me
.
onHighlightClick
,
me
));
$inputHighlight
.
single
(
'
c
hange
'
,
_
.
bind
(
me
.
onHighlightClick
,
me
));
},
},
onSearchbarShow
:
function
(
bar
)
{
onSearchbarShow
:
function
(
bar
)
{
_isShow
=
true
;
_isShow
=
true
;
this
.
api
.
asc_selectSearchingResults
(
Common
.
SharedSettings
.
get
(
'
search-highlight
'
));
},
},
onSearchEnable
:
function
(
bar
)
{
onSearchEnable
:
function
(
bar
)
{
...
@@ -197,6 +198,7 @@ define([
...
@@ -197,6 +198,7 @@ define([
onSearchbarHide
:
function
(
bar
)
{
onSearchbarHide
:
function
(
bar
)
{
_isShow
=
false
;
_isShow
=
false
;
this
.
api
.
asc_selectSearchingResults
(
false
);
},
},
onSearchChange
:
function
(
search
)
{
onSearchChange
:
function
(
search
)
{
...
@@ -325,6 +327,7 @@ define([
...
@@ -325,6 +327,7 @@ define([
onHighlightClick
:
function
(
e
)
{
onHighlightClick
:
function
(
e
)
{
Common
.
SharedSettings
.
set
(
'
search-highlight
'
,
$
(
e
.
currentTarget
).
is
(
'
:checked
'
));
Common
.
SharedSettings
.
set
(
'
search-highlight
'
,
$
(
e
.
currentTarget
).
is
(
'
:checked
'
));
this
.
api
.
asc_selectSearchingResults
(
Common
.
SharedSettings
.
get
(
'
search-highlight
'
));
},
},
// API handlers
// API handlers
...
...
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