In SysConfig, go to Ticket -> Frontend::Agent::ModuleRegistration
In the item, Frontend::Module###AgentTicketEmail, add the following to the LinkOption:
Code: Select all
onclick="Core.UI.Popup.OpenPopup('index.pl?Action=AgentTicketEmail'); return false;"
Code: Select all
<div class="ContentColumn">
<form action="$Env{"CGIHandle"}" onSubmit="top.close();" method="post" enctype="multipart/form-data" name="compose" id="NewEmailTicket" class="Validate PreventMultipleSubmits">
You could also add a cancel button at the top of the page by adding this to the same AgentTicketEmaildtl:
Code: Select all
<a onclick="top.close();" href="">cancel</a>
Code: Select all
<table cellspacing="12">
<tr>
<td><h1>$Text{"Create New Email Ticket"}</h1></td>
<td><a onclick="top.close();" href="">[ cancel ]</a></td>
</tr>
</table>