diff --git a/js/dolisirh.js b/js/dolisirh.js index 08f30e2..df12bec 100644 --- a/js/dolisirh.js +++ b/js/dolisirh.js @@ -1219,6 +1219,13 @@ window.eoxiaJS.keyEvent.keyup = function(event) { $(this).find('.button_removefilter').click(); } } + if ($(event.target).is('body')) { + let height = ''; + if (event.shiftKey) { + height = 200 + 'px'; + $('body').find('.wpeo-tooltip').css('height', height); + } + } }; /** diff --git a/langs/fr_FR/dolisirh.lang b/langs/fr_FR/dolisirh.lang index 91fc69a..1ca5250 100644 --- a/langs/fr_FR/dolisirh.lang +++ b/langs/fr_FR/dolisirh.lang @@ -146,11 +146,12 @@ MarkYourTime = Pointer son temps MissingTaskWithTimeSpentOption = Erreur : il faut choisir une tâche pour pointer son temps MissingEndDateWithTimeSpentOption = Erreur : il faut choisir une date de fin d'événement pour pointer son temps ErrorTimeSpentDurationCantBeNegative = Erreur : la date de fin d'événement ne peut pas être une valeur négative -KeyEventTips = La touche 'Enter' permet de lancer la recherche.
Les touches 'shift + Enter' permettent de supprimer les paramètres de recherche. +KeyEventTips = La touche 'Enter' permet de lancer la recherche.
Les touches 'shift + Enter' permettent de supprimer les paramètres de recherche.
La touche 'shift sur une tooltip affiche plus d'informations sur les commentaires. TimeSpentAutoCreate = Temps consommé ajouté depuis l'événement : %s TimeSpentCurrentMonthByTaskAndProject = Répartition du temps consommé au mois de %s par tâche sur chaque projet NotConsumedWorkedHours = Heures de travail non consommées GlobalTimeSpentCurrentMonthByTaskAndProject = Répartition du temps consommé global au mois de %s par tâche sur chaque projet +KeyEvent = Raccourci clavier diff --git a/lib/dolisirh_function.lib.php b/lib/dolisirh_function.lib.php index 4d27466..a701e64 100644 --- a/lib/dolisirh_function.lib.php +++ b/lib/dolisirh_function.lib.php @@ -1327,10 +1327,7 @@ function doliSirhTaskLinesWithinRange(&$inc, $firstdaytoshow, $lastdaytoshow, $f if ($totalforeachday[$tmpday] > 0) { $timeSpentComments = $timeSpentOnTasks[$lines[$i]->id]['comments'][dol_print_date($tmpday, 'day')]; if (is_array($timeSpentComments) && !empty($timeSpentComments)) { - $text_tooltip = ''; - foreach ($timeSpentComments as $timeSpentComment) { - $text_tooltip .= $langs->trans('Comment') . ' : ' . $timeSpentComment . ' - '; - } + $text_tooltip = implode('', $timeSpentComments); } else { $text_tooltip = $langs->trans('TimeSpentAddWithNoComment'); } diff --git a/view/timespent_month.php b/view/timespent_month.php index 6c18aed..6b6372f 100644 --- a/view/timespent_month.php +++ b/view/timespent_month.php @@ -512,7 +512,7 @@ print ''; print '
'; -print img_picto('', 'info', 'class="pictofixedwidth"') . ' ' . $langs->trans('KeyEventTips') . '

'; +print img_help(1, $langs->trans('KeyEvent')) . ' ' . $langs->trans('KeyEventTips') . '

'; print $langs->trans('ShowOnlyFavoriteTasks'); print 'conf->DOLISIRH_SHOW_ONLY_FAVORITE_TASKS ? ' checked' : '').' >'; if ($user->conf->DOLISIRH_SHOW_ONLY_FAVORITE_TASKS > 0) { diff --git a/view/timespent_week.php b/view/timespent_week.php index 708630b..ae45674 100644 --- a/view/timespent_week.php +++ b/view/timespent_week.php @@ -503,7 +503,7 @@ print ''; print '
'; -print img_picto('', 'info', 'class="pictofixedwidth"') . ' ' . $langs->trans('KeyEventTips') . '

'; +print img_help(1, $langs->trans('KeyEvent')) . ' ' . $langs->trans('KeyEventTips') . '

'; print $langs->trans('ShowOnlyFavoriteTasks'); print 'conf->DOLISIRH_SHOW_ONLY_FAVORITE_TASKS ? ' checked' : '').' >'; if ($user->conf->DOLISIRH_SHOW_ONLY_FAVORITE_TASKS > 0) {