NEW: add const to not include JQuery UI in top_htmlhead DISABLE_JQUERY_UI

This commit is contained in:
Florian HENRY 2025-02-07 10:05:17 +01:00
parent 15dec468cb
commit 867215e2ea

View File

@ -2120,8 +2120,6 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
} else {
print '<script nonce="'.getNonce().'" src="'.DOL_URL_ROOT.'/includes/jquery/js/jquery.min.js'.($ext ? '?'.$ext : '').'"></script>'."\n";
}
if (!defined('DISABLE_JQUERY_UI')) {
if (defined('JS_JQUERY_UI') && constant('JS_JQUERY_UI')) {
print '<script nonce="' . getNonce() . '" src="' . JS_JQUERY_UI . 'jquery-ui.min.js' . ($ext ? '?' . $ext : '') . '"></script>' . "\n";