Fix: grip and close for title must differ from grip and close used for

other styles.
This commit is contained in:
Laurent Destailleur
2013-07-30 17:22:52 +02:00
parent 73edad8b88
commit eeb8ef57c9
11 changed files with 3 additions and 3 deletions

View File

@@ -166,8 +166,8 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty"
{
print '</td><td class="nocellnopadd boxclose nowrap">';
// The image must have the class 'boxhandle' beause it's value used in DOM draggable objects to define the area used to catch the full object
print img_picto($langs->trans("MoveBox",$this->box_id),'grip','class="boxhandle hideonsmartphone" style="cursor:move;"');
print img_picto($langs->trans("Close",$this->box_id),'close','class="boxclose" rel="x:y" style="cursor:pointer;" id="imgclose'.$this->box_id.'"');
print img_picto($langs->trans("MoveBox",$this->box_id),'grip_title','class="boxhandle hideonsmartphone" style="cursor:move;"');
print img_picto($langs->trans("Close",$this->box_id),'close_title','class="boxclose" rel="x:y" style="cursor:pointer;" id="imgclose'.$this->box_id.'"');
$label=$head['text'];
if (! empty($head['graph'])) $label.=' ('.$langs->trans("Graph").')';
print '<input type="hidden" id="boxlabelentry'.$this->box_id.'" value="'.dol_escape_htmltag($label).'">';
@@ -242,7 +242,7 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty"
else print $text2withnotags; // show text with html cleaning
if (! empty($textnoformat)) print "\n".$textnoformat."\n";
print "</td>";
}