";
+ */
// Activate preview tab on element card
if (class_exists("Imagick"))
diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php
index b5b3b508bde..83f1528fa70 100644
--- a/htdocs/core/class/conf.class.php
+++ b/htdocs/core/class/conf.class.php
@@ -317,10 +317,6 @@ class Conf
$this->global->MAIN_CONFIRM_AJAX=0;
}
- // conf->use_popup_calendar
- $this->use_popup_calendar=""; // Pas de date popup par defaut
- if (isset($this->global->MAIN_POPUP_CALENDAR)) $this->use_popup_calendar=$this->global->MAIN_POPUP_CALENDAR;
-
// conf->monnaie
if (empty($this->global->MAIN_MONNAIE)) $this->global->MAIN_MONNAIE='EUR';
$this->monnaie=$this->global->MAIN_MONNAIE; // TODO deprecated
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 075de81629a..fc37aaa0635 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -2061,7 +2061,7 @@ class Form
var $inputarray='.json_encode($inputarray).';
var button=\''.$button.'\';
var dialogconfirm=\''.$dialogconfirm.'\';
-
+
$( "#" + dialogconfirm ).dialog({
autoOpen: '.($autoOpen?'true':'false').',
resizable: false,
@@ -2095,7 +2095,7 @@ class Form
}
}
});
-
+
if (button.length > 0) {
$( "#" + button ).click(function() {
$( "#" + dialogconfirm ).dialog( \'open\' );
@@ -2871,7 +2871,7 @@ class Form
if ($d)
{
// Show date with popup
- if ($conf->use_javascript_ajax && $conf->use_popup_calendar)
+ if ($conf->use_javascript_ajax && (empty($conf->global->MAIN_POPUP_CALENDAR) || $conf->global->MAIN_POPUP_CALENDAR != "none"))
{
//print "e".$set_time." t ".$conf->format_date_short;
if (strval($set_time) != '' && $set_time != -1)
@@ -2881,7 +2881,7 @@ class Form
}
// Calendrier popup version eldy
- if ("$conf->use_popup_calendar" == "eldy") // Laisser conf->use_popup_calendar entre quote
+ if (empty($conf->global->MAIN_POPUP_CALENDAR) || $conf->global->MAIN_POPUP_CALENDAR == "eldy")
{
// Zone de saisie manuelle de la date
$retstring.='use_javascript_ajax || ! $conf->use_popup_calendar)
+ if (empty($conf->use_javascript_ajax) || $conf->global->MAIN_POPUP_CALENDAR == "none")
{
// Jour
$retstring.='