Use jquery-ui-timepicker-addon.min.js (41 KB) instead of jquery-ui-timepicker-addon.js (78 KB)

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu 2025-07-30 19:20:46 +02:00
parent e9ffe0ed45
commit 26ea24414e
4 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@ export function addDatepicker ($thisElement, type = undefined, options = undefin
/**
* Add a date/time picker to each element that needs it
* (only when jquery-ui-timepicker-addon.js is loaded)
* (only when jquery-ui-timepicker-addon.min.js is loaded)
*/
export function addDateTimePicker () {
if ($.timepicker === undefined) {

View File

@ -87,7 +87,7 @@ class Header
$this->scripts->addFile('vendor/bootstrap/bootstrap.js');
$this->scripts->addFile('vendor/js.cookie.min.js');
$this->scripts->addFile('vendor/jquery/jquery.validate.min.js');
$this->scripts->addFile('vendor/jquery/jquery-ui-timepicker-addon.js');
$this->scripts->addFile('vendor/jquery/jquery-ui-timepicker-addon.min.js');
$this->scripts->addFile('index.php', ['route' => '/messages', 'l' => Current::$lang]);
$this->scripts->addFile('shared.js');
$this->scripts->addFile('menu_resizer.js');

View File

@ -284,7 +284,7 @@ class HeaderTest extends AbstractTestCase
['name' => 'vendor/bootstrap/bootstrap.js', 'fire' => 0],
['name' => 'vendor/js.cookie.min.js', 'fire' => 0],
['name' => 'vendor/jquery/jquery.validate.min.js', 'fire' => 0],
['name' => 'vendor/jquery/jquery-ui-timepicker-addon.js', 'fire' => 0],
['name' => 'vendor/jquery/jquery-ui-timepicker-addon.min.js', 'fire' => 0],
['name' => 'index.php', 'fire' => 0],
['name' => 'shared.js', 'fire' => 0],
['name' => 'menu_resizer.js', 'fire' => 1],

View File

@ -157,7 +157,7 @@ module.exports = [
{ from: rootPath + '/node_modules/u2f-api-polyfill/u2f-api-polyfill.js', to: publicPath + '/js/vendor/u2f-api-polyfill.js' },
{ from: rootPath + '/node_modules/jquery-uitablefilter/jquery.uitablefilter.js', to: publicPath + '/js/vendor/jquery/jquery.uitablefilter.js' },
{ from: rootPath + '/node_modules/tablesorter/dist/js/jquery.tablesorter.js', to: publicPath + '/js/vendor/jquery/jquery.tablesorter.js' },
{ from: rootPath + '/node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.js', to: publicPath + '/js/vendor/jquery/jquery-ui-timepicker-addon.js' },
{ from: rootPath + '/node_modules/jquery-ui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.js', to: publicPath + '/js/vendor/jquery/jquery-ui-timepicker-addon.min.js' },
{ from: rootPath + '/node_modules/ol/ol.css', to: publicPath + '/js/vendor/openlayers/openlayers.css' },
{ from: rootPath + '/node_modules/locutus.sprintf/src/php/strings/sprintf.browser.js', to: publicPath + '/js/vendor/sprintf.js' },
{ from: rootPath + '/node_modules/chart.js/dist/chart.umd.js', to: publicPath + '/js/vendor/chart.umd.js' },