From d9efa95e09376fb21931674a9be97ff886cda5ba Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 13 Nov 2012 16:20:15 +0100 Subject: [PATCH] Fix: optimize code --- htdocs/comm/action/class/actioncomm.class.php | 1 + htdocs/comm/action/fiche.php | 114 ++++++++---------- 2 files changed, 49 insertions(+), 66 deletions(-) diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 90168e4790d..760651a7f2b 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -51,6 +51,7 @@ class ActionComm extends CommonObject var $datep; // Date action start (datep) var $datef; // Date action end (datep2) + var $dateend; // ?? var $durationp = -1; // -1=Unkown duration var $fulldayevent = 0; // 1=Event on full day var $punctual = 1; // Milestone diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 48b48191c91..53b0dae69ab 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -381,54 +381,45 @@ if ($action == 'create') if (! empty($conf->use_javascript_ajax)) { - print "\n".''."\n"; } - print '
'; + print ''; print ''; print ''; if ($backtopage) print ''; @@ -647,43 +638,34 @@ if ($id) if ($action == 'edit') { - if ($conf->use_javascript_ajax) + if (! empty($conf->use_javascript_ajax)) { - print "\n".''."\n"; } // Fiche action en mode edition - print ''; + print ''; print ''; print ''; print '';