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
005bfb9e
Commit
005bfb9e
authored
Nov 24, 2016
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE mobile] Replace All via longTap.
parent
6e1e160d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
1 deletion
+34
-1
apps/documenteditor/mobile/app-dev.js
apps/documenteditor/mobile/app-dev.js
+3
-0
apps/documenteditor/mobile/app.js
apps/documenteditor/mobile/app.js
+3
-0
apps/documenteditor/mobile/app/controller/Search.js
apps/documenteditor/mobile/app/controller/Search.js
+26
-1
apps/documenteditor/mobile/locale/en.json
apps/documenteditor/mobile/locale/en.json
+1
-0
apps/documenteditor/mobile/resources/css/app-ios.css
apps/documenteditor/mobile/resources/css/app-ios.css
+1
-0
No files found.
apps/documenteditor/mobile/app-dev.js
View file @
005bfb9e
...
...
@@ -173,6 +173,9 @@ require([
// Default title for modals
modalTitle
:
'
ONLYOFFICE
'
,
// Enable tap hold events
tapHold
:
true
,
// If it is webapp, we can enable hash navigation:
// pushState: false,
...
...
apps/documenteditor/mobile/app.js
View file @
005bfb9e
...
...
@@ -184,6 +184,9 @@ require([
// Default title for modals
modalTitle
:
'
ONLYOFFICE
'
,
// Enable tap hold events
tapHold
:
true
,
// If it is webapp, we can enable hash navigation:
// pushState: false,
...
...
apps/documenteditor/mobile/app/controller/Search.js
View file @
005bfb9e
...
...
@@ -156,6 +156,8 @@ define([
me
.
searchNext
.
single
(
'
click
'
,
_
.
bind
(
me
.
onSearchNext
,
me
));
me
.
replaceBtn
.
single
(
'
click
'
,
_
.
bind
(
me
.
onReplace
,
me
));
$$
(
'
.searchbar.document .link.replace
'
).
on
(
'
taphold
'
,
_
.
bind
(
me
.
onReplaceAll
,
me
));
me
.
searchBar
.
search
(
searchString
);
me
.
replaceBar
.
search
(
replaceString
);
},
...
...
@@ -241,6 +243,28 @@ define([
this
.
onQueryReplace
(
this
.
searchBar
.
query
,
this
.
replaceBar
.
query
);
},
onReplaceAll
:
function
(
e
)
{
var
me
=
this
,
popover
=
[
'
<div class="popover" style="width: auto;">
'
,
'
<div class="popover-inner">
'
,
'
<div class="list-block">
'
,
'
<ul>
'
,
'
<li><a href="#" id="replace-all" class="item-link list-button">{0}</li>
'
.
format
(
me
.
textReplaceAll
),
'
</ul>
'
,
'
</div>
'
,
'
</div>
'
,
'
</div>
'
].
join
(
''
);
popover
=
uiApp
.
popover
(
popover
,
$$
(
e
.
currentTarget
));
$
(
'
#replace-all
'
).
single
(
'
click
'
,
_
.
bind
(
function
()
{
me
.
onQueryReplaceAll
(
this
.
searchBar
.
query
,
this
.
replaceBar
.
query
);
uiApp
.
closeModal
(
popover
);
},
me
))
},
onQuerySearch
:
function
(
query
,
direction
)
{
var
matchcase
=
Common
.
SharedSettings
.
get
(
'
search-case-sensitive
'
)
||
false
,
matchword
=
Common
.
SharedSettings
.
get
(
'
search-highlight
'
)
||
false
;
...
...
@@ -305,7 +329,8 @@ define([
// API handlers
textNoTextFound
:
'
Text not found
'
textNoTextFound
:
'
Text not found
'
,
textReplaceAll
:
'
Replace All
'
}
})(),
DE
.
Controllers
.
Search
||
{}))
});
\ No newline at end of file
apps/documenteditor/mobile/locale/en.json
View file @
005bfb9e
...
...
@@ -96,6 +96,7 @@
"DE.Controllers.DocumentHolder.menuOpenLink"
:
"Open Link"
,
"DE.Controllers.Search.textNoTextFound"
:
"Text not Found"
,
"DE.Controllers.Search.textReplaceAll"
:
"Replace All"
,
"DE.Views.Search.textFind"
:
"Find"
,
"DE.Views.Search.textFindAndReplace"
:
"Find and Replace"
,
"DE.Views.Search.textDone"
:
"Done"
,
...
...
apps/documenteditor/mobile/resources/css/app-ios.css
View file @
005bfb9e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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