diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index b796183782b..0c5283afa28 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -273,7 +273,7 @@ print ' jQuery(\'.clipboardCPShowOnHover\').hover( function() { console.log("We hover a value with a copy paste feature"); - $(this).children(".clipboardCPButton, .clipboardCPText").show(); + $(this).children(".clipboardCPButton, .clipboardCPText").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */ }, function() { console.log("We hover out the value with a copy paste feature"); @@ -306,7 +306,7 @@ print ' succeed = document.execCommand(\'copy\'); console.log("We set the style display back to inline-block"); - jqobj.css("display", "inline-block"); + jqobj.css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */ } catch(e) { succeed = false; } @@ -315,16 +315,18 @@ print ' window.getSelection().removeAllRanges(); } - /* Show message */ - /* TODO Show message into a top left corner or center of screen */ + /* Show result - message */ + var lastparent = $(this).parent(); /* .parent is clipboardCP */ var lastchild = this.parentNode.lastChild; /* .parentNode is clipboardCP and last child is clipboardCPText */ var tmp = lastchild.innerHTML if (succeed) { - lastchild.innerHTML = \'
| '.img_picto('', $picto, 'class="valignmiddle widthpictotitle pictotitle"', $pictoisfullpath).' | '; } $return .= '';
$return .= ' ';
- $return .= $title; // $title is already HTML sanitized content
+ $return .= ''.$title.''; // $title is already HTML sanitized content
$return .= ' ';
$return .= ' | ';
if (dol_strlen($morehtmlcenter)) {
@@ -6439,7 +6439,8 @@ function print_barre_liste($title, $page, $file, $options = '', $sortfield = '',
print "\n";
print "\n";
- print '||||||||
| '.$obj->label.' | '.$obj->nb.' | ||
| '.dolPrintHTML($obj->label).' | '.$obj->nb.' | ||
| '.$langs->trans("NbOfActiveNotifications").' | '; // Notification for this thirdparty print '';
@@ -234,6 +238,16 @@ if ($result > 0) {
print ' '."\n"; + + // Add notification form + + print ' | ||