From b4c4211b98a178c24b9cf165967e19bc98583512 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 May 2013 20:09:26 +0200 Subject: [PATCH] Fix: was using bad params and not complete. --- htdocs/main.inc.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 5faed38279f..f2905e95181 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1148,20 +1148,22 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs // jQuery jMobile if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || (! empty($conf->dol_use_jmobile) && $conf->dol_use_jmobile > 0)) { - // We must force not using ajax because cache of jquery does not load js of other pages. - // This also increase seriously speed onto mobile device where complex js code is very slow and memory very low. + // Note: We can force not using ajax because cache of jquery does not load js of other pages by setting ajaxEnabled. if (empty($conf->dol_use_jmobile) || $conf->dol_use_jmobile != 2) { - print ''; - } + print ''; + } print ''."\n"; } }