diff --git a/bld/Release/PackageLayout/www/js/app.js b/bld/Release/PackageLayout/www/js/app.js index 6660e8a9..a447bb5e 100644 --- a/bld/Release/PackageLayout/www/js/app.js +++ b/bld/Release/PackageLayout/www/js/app.js @@ -29,7 +29,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFilesystemAccess'], function($, zimArchiveLoader, util, uiUtil, cookies, abstractFilesystemAccess) { - // Disable any eval() call in jQuery : it's disabled by CSP in any packaged application + /*/ Disable any eval() call in jQuery : it's disabled by CSP in any packaged application // It happens on some wiktionary archives, because there is some javascript inside the html article // Cf http://forum.jquery.com/topic/jquery-ajax-disable-script-eval jQuery.globalEval = function (code) { @@ -42,7 +42,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles * Maximum number of articles to display in a search * @type Integer */ - var MAX_SEARCH_RESULT_SIZE = 50; + //var MAX_SEARCH_RESULT_SIZE = 50; + var MAX_SEARCH_RESULT_SIZE = 20; //GK - speed up search /** * @type ZIMArchive diff --git a/www/js/app.js b/www/js/app.js index 6660e8a9..a447bb5e 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -29,7 +29,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFilesystemAccess'], function($, zimArchiveLoader, util, uiUtil, cookies, abstractFilesystemAccess) { - // Disable any eval() call in jQuery : it's disabled by CSP in any packaged application + /*/ Disable any eval() call in jQuery : it's disabled by CSP in any packaged application // It happens on some wiktionary archives, because there is some javascript inside the html article // Cf http://forum.jquery.com/topic/jquery-ajax-disable-script-eval jQuery.globalEval = function (code) { @@ -42,7 +42,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles * Maximum number of articles to display in a search * @type Integer */ - var MAX_SEARCH_RESULT_SIZE = 50; + //var MAX_SEARCH_RESULT_SIZE = 50; + var MAX_SEARCH_RESULT_SIZE = 20; //GK - speed up search /** * @type ZIMArchive