Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL_Search
Commits
5b3f0f00
Commit
5b3f0f00
authored
Jan 16, 2019
by
Eric Rasmussen
Browse files
Fix Chrome iOS embed iframe issue
parent
d0e829c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/index.php
View file @
5b3f0f00
...
...
@@ -26,7 +26,7 @@ function loadDefaultSections($page)
$page
->
affiliation
=
''
;
}
$localScriptUrl
=
'./js/search.min.js?v=
4.1.20
'
;
$localScriptUrl
=
'./js/search.min.js?v=
20190116
'
;
if
(
UNL_Search
::
$mode
===
'debug'
)
{
$pageTemplate
=
'Local'
;
...
...
www/js/search.js
View file @
5b3f0f00
...
...
@@ -381,6 +381,14 @@ define(['jquery', 'analytics'], function ($, analytics) {
return
;
}
// Chrome iOS issues a message on touch that is an object with
// oEvent.data.type = 'org.chromium.contextMenuMessage'.
// We will just ignore anything that isn't a string, which is what is
// expected from the parent window with wdntemplates's embedded search.
if
(
typeof
oEvent
.
data
!==
'
string
'
)
{
return
;
}
q
=
$
.
trim
(
oEvent
.
data
);
passiveQuery
(
q
);
});
...
...
Write
Preview
Supports
Markdown
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