forked from Wavyzz/dolibarr
Fix: Solve conflict with imgup and imgdown class use for sort fields and
to drag and drop lines.
This commit is contained in:
@@ -2280,15 +2280,16 @@ function img_previous($titlealt = 'default')
|
||||
*
|
||||
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
|
||||
* @param int $selected Selected
|
||||
* @param string $moreclass Add more CSS classes
|
||||
* @return string Return img tag
|
||||
*/
|
||||
function img_down($titlealt = 'default', $selected = 0)
|
||||
function img_down($titlealt = 'default', $selected = 0, $moreclass='')
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
if ($titlealt == 'default') $titlealt = $langs->trans('Down');
|
||||
|
||||
return img_picto($titlealt, ($selected ? '1downarrow_selected.png' : '1downarrow.png'), 'class="imgdown"');
|
||||
return img_picto($titlealt, ($selected ? '1downarrow_selected.png' : '1downarrow.png'), 'class="imgdown'.($moreclass?" ".$moreclass:"").'"');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2296,15 +2297,16 @@ function img_down($titlealt = 'default', $selected = 0)
|
||||
*
|
||||
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
|
||||
* @param int $selected Selected
|
||||
* @param string $moreclass Add more CSS classes
|
||||
* @return string Return img tag
|
||||
*/
|
||||
function img_up($titlealt = 'default', $selected = 0)
|
||||
function img_up($titlealt = 'default', $selected = 0, $moreclass='')
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
if ($titlealt == 'default') $titlealt = $langs->trans('Up');
|
||||
|
||||
return img_picto($titlealt, ($selected ? '1uparrow_selected.png' : '1uparrow.png'), 'class="imgup"');
|
||||
return img_picto($titlealt, ($selected ? '1uparrow_selected.png' : '1uparrow.png'), 'class="imgup'.($moreclass?" ".$moreclass:"").'"');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2622,7 +2624,7 @@ function print_liste_field_titre($name, $file="", $field="", $begin="", $morepar
|
||||
* Get title line of an array
|
||||
*
|
||||
* @param string $name Label of field
|
||||
* @param int $thead 0=To use with standard table forat, 1=To use inside <thead><tr>, 2=To use with <div>
|
||||
* @param int $thead 0=To use with standard table format, 1=To use inside <thead><tr>, 2=To use with <div>
|
||||
* @param string $file Url used when we click on sort picto
|
||||
* @param string $field Field to use for new sorting. Empty if this field is not sortable.
|
||||
* @param string $begin ("" by defaut)
|
||||
|
||||
Reference in New Issue
Block a user