2
0
forked from Wavyzz/dolibarr

NEW Add function showValueWithClipboardCPButton() to add a copy/paste

button on a text.
This commit is contained in:
Laurent Destailleur
2021-01-28 12:44:45 +01:00
parent ce3279c462
commit 3eebbc6426
2 changed files with 6 additions and 6 deletions

View File

@@ -9248,7 +9248,7 @@ function readfileLowMemory($fullpath_original_file_osencoded, $method = -1)
* @param int $showonlyonhover Show the copypaste button only on hover
* @return string The string to print for the button
*/
function showValueWithCopyAndPasteButton($valuetoprint, $showonlyonhover = 1)
function showValueWithClipboardCPButton($valuetoprint, $showonlyonhover = 1)
{
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><span class="clipboardCPValue">'.$valuetoprint.'</span><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText opacitymedium"></span></span>';
return $result;