mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
Issue #2745 - Move JS files to footer. (Tested with and without JS/CSS caching)
This commit is contained in:
@@ -1429,11 +1429,10 @@ class e_form
|
||||
$text .= "<input type='{$ftype}' name='{$name}' id='{$id}' value='{$hiddenValue}' />";
|
||||
}
|
||||
|
||||
// Load it in the footer.
|
||||
// FIXME use Library Manager (e107::library()) instead?
|
||||
// TODO use Library Manager...
|
||||
e107::css('core', 'bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css', 'jquery');
|
||||
e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 2);
|
||||
e107::js('core', 'bootstrap-datetimepicker/js/bootstrap-datetimepicker.init.js', 'jquery', 2);
|
||||
e107::js('footer', '{e_WEB}js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js', 'jquery', 4);
|
||||
e107::js('footer', '{e_WEB}js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.init.js', 'jquery', 5);
|
||||
|
||||
if(e_LANGUAGE !== 'English')
|
||||
{
|
||||
|
Reference in New Issue
Block a user