mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
32 lines
599 B
JavaScript
32 lines
599 B
JavaScript
var result = null;
|
|
|
|
function Startup()
|
|
{
|
|
/* dump("Startup()\n"); */
|
|
|
|
if (window.arguments && window.arguments[0] && window.arguments[0])
|
|
{
|
|
result = window.arguments[0];
|
|
doSetOKCancel(AttachPageOKCallback, AttachPageCancelCallback);
|
|
moveToAlertPosition();
|
|
}
|
|
else
|
|
{
|
|
dump("error, no return object registered\n");
|
|
}
|
|
|
|
}
|
|
|
|
function AttachPageOKCallback()
|
|
{
|
|
/* dump("attach this: " + document.getElementById('attachurl').value + "\n"); */
|
|
|
|
result.url = document.getElementById('attachurl').value;
|
|
return true;
|
|
}
|
|
|
|
function AttachPageCancelCallback()
|
|
{
|
|
return true;
|
|
}
|