From 9ff0855812ddcfd846e20a51a9e2e754d4b94f96 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 10 Oct 2017 10:04:16 +0200 Subject: [PATCH] Fix: datepicker.js.php is needed for the translation !! --- htdocs/core/class/html.form.class.php | 62 ---------------- htdocs/core/js/datepicker.js.php | 100 +++++++++++++------------- htdocs/main.inc.php | 6 +- 3 files changed, 51 insertions(+), 117 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 72f5380507d..365467082cb 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4789,69 +4789,7 @@ class Form { $retstring.="'."\n"; - // Add datepicker default options - /*if (! defined('DISABLE_DATE_PICKER')) + // Add datepicker default options (needed by jquery datepicker!) + if (! defined('DISABLE_DATE_PICKER')) { print ''."\n"; - }*/ + } // JS forced by modules (relative url starting with /) if (! empty($conf->modules_parts['js'])) // $conf->modules_parts['js'] is array('module'=>array('file1','file2'))