Skip to content
Snippets Groups Projects
Commit 6dab09e0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Bad dialog position

parent c969bc3e
No related branches found
No related tags found
No related merge requests found
......@@ -775,15 +775,14 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='')
<div id="dialog" title="<?php echo dol_escape_htmltag($langs->trans('Address')); ?>" style="display: none;"></div>
<?php
print '<script type="text/javascript">
$("#dialog").dialog()
function copyToClipboard (text) {
function copyToClipboard (text) {
text = text.replace(/<br \/>/g,"\n");
var newElem = "<textarea id=\"coords\" style=\"border: none; width: 90%; height: 120px;\">"+text+"</textarea><br/><br/>'.$langs->trans('HelpCopyToClipboard').'";
$("#dialog").html(newElem);
$("#dialog").dialog();
$("#coords").select();
return false;
}
}
</script>';
return $i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment