1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Closes #4567 - jQuery 3 is now the default for the frontend of e107.

To use v2, add the following to e107_config.php: define('e_DEBUG_JQUERY', 2);
This commit is contained in:
Cameron
2021-09-23 11:02:43 -07:00
parent 94c5761893
commit a8ec6435e5
3 changed files with 40 additions and 16 deletions

View File

@@ -239,16 +239,16 @@ class e_jsmanager
}
else // Front-End.
{
if(defset('e_DEBUG_JQUERY') === 3)
{
e107::library('load', 'cdn.jquery3');
}
else
if(defset('e_DEBUG_JQUERY') === 2)
{
e107::library('load', 'jquery');
// jQuery Once is used in e107.behaviors.
e107::library('load', 'jquery.once');
}
else
{
e107::library('load', 'jquery3');
}
}