Commit fedd565c authored by sunnavy's avatar sunnavy
Browse files

it's not necessary for IPs and Addresses textareas to be rich text boxes.

besides, current backend code doesn't handle rich text either.
parent dd6070ee
......@@ -74,6 +74,8 @@
<&| /Widgets/TitleBox, contentbg => "#cccccc", title => loc("Identify Recipients") &>
<table border="0" cellpadding="0" cellspacing="2">
% my $height = RT->Config->Get('MessageBoxHeight', $session{'CurrentUser'} ) || 15;
% my $wrap = RT->Config->Get('MessageBoxWrap', $session{'CurrentUser'} ) || 'SOFT';
% if ($loop eq 'IP') {
<tr>
<td class="label">WHOIS:</td>
......@@ -90,22 +92,14 @@
<&|/l&>IP Addresses</&>:<br /><small>arg: <i>_IP_</i></small>
</td>
<td class="value">
% if (exists $ARGS{IPs}) {
<& /Elements/MessageBox, Name=>"IPs", Width => 30, Default=>$ARGS{IPs}, IncludeSignature => 0, %ARGS&>
% } else {
<& /Elements/MessageBox, Name=> 'IPs', Width => 30, IncludeSignature => 0 &>
% }
<textarea autocomplete="off" cols="30" rows="<% $height %>" wrap="<% $wrap %>" name="IPs" id="IPs"><% $ARGS{IPs} || '' %></textarea>
</td>
</tr>
% } else {
<tr>
<td class="label"><&|/l&>Addresses</&>:<br /><small>arg: <i>_ADDR_</i></small></td>
<td class="value">
% if (exists $ARGS{Addresses}) {
<& /Elements/MessageBox, Name=>"Addresses", Width => 30, Default=>$ARGS{Addresses}, IncludeSignature => 0, %ARGS&>
% } else {
<& /Elements/MessageBox, Name=> 'Addresses', Width => 30, IncludeSignature => 0 &>
% }
<textarea autocomplete="off" cols="30" rows="<% $height %>" wrap="<% $wrap %>" name="Addresses" id="Addresses"><% $ARGS{Addresses} || '' %></textarea>
</td>
</tr>
% }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment