Fix conflict with the div #dialog used for popup cut and paste of

address.
This commit is contained in:
Laurent Destailleur
2016-01-02 00:27:14 +01:00
parent a7b2f000d8
commit 1ae4bef04b
6 changed files with 18 additions and 16 deletions

View File

@@ -940,10 +940,11 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
function copyToClipboard(text,text2)
{
text = text.replace(/<br>/g,"\n");
var newElem = '<textarea id="coords" style="border: none; width: 90%; height: 120px;">'+text+'</textarea><br><br>'+text2;
$("#dialog").html(newElem);
$("#dialog").dialog();
$("#coords").select();
var newElem = '<textarea id="coordsforpopup" style="border: none; width: 90%; height: 120px;">'+text+'</textarea><br><br>'+text2;
/* alert(newElem); */
$("#dialogforpopup").html(newElem);
$("#dialogforpopup").dialog();
$("#coordsforpopup").select();
return false;
}