forked from Wavyzz/dolibarr
Debug v22
This commit is contained in:
@@ -1709,7 +1709,7 @@ class ActionComm extends CommonObject
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return URL of event
|
* Return URL of event
|
||||||
* Use $this->id, $this->type_code, $this->label and $this->type_label
|
* This uses $this->id, $this->type_code, $this->label and $this->type_label
|
||||||
*
|
*
|
||||||
* @param int<0,2> $withpicto 0 = No picto, 1 = Include picto into link, 2 = Only picto
|
* @param int<0,2> $withpicto 0 = No picto, 1 = Include picto into link, 2 = Only picto
|
||||||
* @param int $maxlength Max number of characters into label. If negative, use the ref as label.
|
* @param int $maxlength Max number of characters into label. If negative, use the ref as label.
|
||||||
@@ -1762,7 +1762,7 @@ class ActionComm extends CommonObject
|
|||||||
if (getDolGlobalInt('MAIN_ENABLE_AJAX_TOOLTIP')) {
|
if (getDolGlobalInt('MAIN_ENABLE_AJAX_TOOLTIP')) {
|
||||||
$classfortooltip = 'classforajaxtooltip';
|
$classfortooltip = 'classforajaxtooltip';
|
||||||
$dataparams = ' data-params="'.dol_escape_htmltag(json_encode($params)).'"';
|
$dataparams = ' data-params="'.dol_escape_htmltag(json_encode($params)).'"';
|
||||||
$label = '';
|
//$label = ''; // $label is used as ref when $maxlength is not negative, so we must not empty it.
|
||||||
} else {
|
} else {
|
||||||
$label = implode($this->getTooltipContentArray($params));
|
$label = implode($this->getTooltipContentArray($params));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -262,3 +262,8 @@ if ($object->id > 0) {
|
|||||||
show_actions_messaging($conf, $langs, $db, $object, null, 0, $actioncode, '', $filters, $sortfield, $sortorder);
|
show_actions_messaging($conf, $langs, $db, $object, null, 0, $actioncode, '', $filters, $sortfield, $sortorder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// End of page
|
||||||
|
llxFooter();
|
||||||
|
$db->close();
|
||||||
|
|||||||
@@ -15659,9 +15659,11 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
|
|||||||
|
|
||||||
$out .= "</ul>\n";
|
$out .= "</ul>\n";
|
||||||
|
|
||||||
|
// Code to manage the click on button data-read-more-action to show full description of an event
|
||||||
$out .= '<script>
|
$out .= '<script>
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
$(document).on("click", "[data-read-more-action]", function(e){
|
$(document).on("click", "[data-read-more-action]", function(e){
|
||||||
|
console.log("We click on data-read-more-action");
|
||||||
let readMoreBloc = $(this).closest(".readmore-block");
|
let readMoreBloc = $(this).closest(".readmore-block");
|
||||||
if(readMoreBloc.length > 0){
|
if(readMoreBloc.length > 0){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user