From 6190ea6ca58abfe890b94db74efb8ae6015277d8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 14 Sep 2010 20:27:47 +0000 Subject: [PATCH] Hide arrows if we use the jquery drag and drop --- htdocs/comm/propal.php | 16 +++++++++------- htdocs/lib/functions.lib.php | 24 ++++++++++++------------ 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index cc4be6ba5b1..e1beb363b1e 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -165,7 +165,7 @@ if ($_REQUEST['action'] == 'confirm_deleteline' && $_REQUEST['confirm'] == 'yes' $outputlangs->setDefaultLang($newlang); } propale_pdf_create($db, $propal, $propal->modelpdf, $outputlangs); - + Header ('Location: '.$_SERVER["PHP_SELF"].'?id='.$propal->id); exit; } @@ -1008,7 +1008,7 @@ if ($id > 0 || ! empty($ref)) $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$propal->id.'&lineid='.$_GET["lineid"], $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline','',0,1); if ($ret == 'html') print '
'; } - + /* * TODO ajout temporaire pour test en attendant la migration en template */ @@ -1372,12 +1372,14 @@ if ($id > 0 || ! empty($ref)) print ''; } - + print ''; - + $result = $propal->getLinesArray(); if (!empty($propal->lines)) @@ -1484,7 +1486,7 @@ if ($id > 0 || ! empty($ref)) print ''.$langs->trans('SendByMail').''; } } - + // Create an invoice and classify billed if ($conf->facture->enabled && $propal->statut == 2 && $user->societe_id == 0) { @@ -1492,7 +1494,7 @@ if ($id > 0 || ! empty($ref)) { print ''.$langs->trans("BuildBill").''; } - + $arraypropal=$propal->getInvoiceArrayList(); if (is_array($arraypropal) && sizeof($arraypropal) > 0) { diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 5022278c74e..164f09e91b5 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1397,31 +1397,31 @@ function img_previous($alt = "default") } /** - * \brief Affiche logo bas - * \param alt Texte sur le alt de l'image - * \param selected Affiche version "selected" du logo - * \return string Retourne tag img + * Show logo down arrow + * @param alt Texte sur le alt de l'image + * @param selected Affiche version "selected" du logo + * @return string Retourne tag img */ function img_down($alt = "default", $selected=0) { global $conf,$langs; if ($alt=="default") $alt=$langs->trans("Down"); - if ($selected) return ''.dol_escape_htmltag($alt).''; - else return ''.dol_escape_htmltag($alt).''; + if ($selected) return ''.dol_escape_htmltag($alt).''; + else return ''.dol_escape_htmltag($alt).''; } /** - * \brief Affiche logo haut - * \param alt Texte sur le alt de l'image - * \param selected Affiche version "selected" du logo - * \return string Retourne tag img + * Show logo top arrow + * @param alt Texte sur le alt de l'image + * @param selected Affiche version "selected" du logo + * @return string Retourne tag img */ function img_up($alt = "default", $selected=0) { global $conf,$langs; if ($alt=="default") $alt=$langs->trans("Up"); - if ($selected) return ''.dol_escape_htmltag($alt).''; - else return ''.dol_escape_htmltag($alt).''; + if ($selected) return ''.dol_escape_htmltag($alt).''; + else return ''.dol_escape_htmltag($alt).''; } /**