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
6f955b31
Commit
6f955b31
authored
May 13, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Баг с поиском в мобильной версии.
parent
6d433bb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
apps/spreadsheeteditor/mobile/app/controller/Search.js
apps/spreadsheeteditor/mobile/app/controller/Search.js
+16
-3
No files found.
apps/spreadsheeteditor/mobile/app/controller/Search.js
View file @
6f955b31
...
@@ -62,19 +62,30 @@ Ext.define('SSE.controller.Search', {
...
@@ -62,19 +62,30 @@ Ext.define('SSE.controller.Search', {
setApi
:
function
(
o
)
{
setApi
:
function
(
o
)
{
this
.
api
=
o
;
this
.
api
=
o
;
this
.
findOptions
=
new
Asc
.
asc_CFindOptions
();
this
.
findOptions
.
asc_setScanForward
(
true
);
this
.
findOptions
.
asc_setIsMatchCase
(
false
);
this
.
findOptions
.
asc_setIsWholeCell
(
false
);
this
.
findOptions
.
asc_setScanOnOnlySheet
(
true
);
this
.
findOptions
.
asc_setScanByRows
(
true
);
this
.
findOptions
.
asc_setLookIn
(
Asc
.
c_oAscFindLookIn
.
Formulas
);
},
},
onNextResult
:
function
(){
onNextResult
:
function
(){
var
searchField
=
this
.
getSearchField
();
var
searchField
=
this
.
getSearchField
();
if
(
this
.
api
&&
searchField
){
if
(
this
.
api
&&
searchField
){
this
.
api
.
asc_findText
(
searchField
.
getValue
(),
true
,
true
);
this
.
findOptions
.
asc_setFindWhat
(
searchField
.
getValue
());
this
.
findOptions
.
asc_setScanForward
(
true
);
this
.
api
.
asc_findText
(
this
.
findOptions
);
}
}
},
},
onPreviousResult
:
function
(){
onPreviousResult
:
function
(){
var
searchField
=
this
.
getSearchField
();
var
searchField
=
this
.
getSearchField
();
if
(
this
.
api
&&
searchField
){
if
(
this
.
api
&&
searchField
){
this
.
api
.
asc_findText
(
searchField
.
getValue
(),
true
,
false
);
this
.
findOptions
.
asc_setFindWhat
(
searchField
.
getValue
());
this
.
findOptions
.
asc_setScanForward
(
false
);
this
.
api
.
asc_findText
(
this
.
findOptions
);
}
}
},
},
...
@@ -83,7 +94,9 @@ Ext.define('SSE.controller.Search', {
...
@@ -83,7 +94,9 @@ Ext.define('SSE.controller.Search', {
searchField
=
this
.
getSearchField
();
searchField
=
this
.
getSearchField
();
if
(
keyCode
==
13
&&
this
.
api
)
{
if
(
keyCode
==
13
&&
this
.
api
)
{
this
.
api
.
asc_findText
(
searchField
.
getValue
(),
true
,
true
);
this
.
findOptions
.
asc_setFindWhat
(
searchField
.
getValue
());
this
.
findOptions
.
asc_setScanForward
(
true
);
this
.
api
.
asc_findText
(
this
.
findOptions
);
}
}
this
.
updateNavigation
();
this
.
updateNavigation
();
},
},
...
...
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