diff --git a/www/index.php b/www/index.php index ae4eb03b6414d9ee7461fbc35ed4d2ac97dffc5f..eb6ee0b9292aea48e64f9174788794b68ac6f85b 100644 --- a/www/index.php +++ b/www/index.php @@ -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'; diff --git a/www/js/search.js b/www/js/search.js index 4a57e73a3c3759883bbd73b1cc5cf761c3b0b2c1..070164f0d287df854eaf9921e5f12c1c1529d40c 100644 --- a/www/js/search.js +++ b/www/js/search.js @@ -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); });