[Rt-commit] [rtir] 01/01: it's not necessary for IPs and Addresses textareas to be rich text boxes.

? sunnavy sunnavy at bestpractical.com
Mon Feb 24 10:32:00 EST 2014


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 3.0/ips-and-addresses-textarea
in repository rtir.

commit fedd565ca39baa0048a18c240c8c107d2c799be0
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Feb 24 23:28:04 2014 +0800

    it's not necessary for IPs and Addresses textareas to be rich text boxes.
    
    besides, current backend code doesn't handle rich text either.
---
 html/RTIR/Tools/ScriptedAction.html | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/html/RTIR/Tools/ScriptedAction.html b/html/RTIR/Tools/ScriptedAction.html
index 5a9c294..ebd6e91 100644
--- a/html/RTIR/Tools/ScriptedAction.html
+++ b/html/RTIR/Tools/ScriptedAction.html
@@ -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>
 % }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list