[freeside-commits] freeside/httemplate/edit cust_main_note.cgi, 1.4, 1.4.4.1

Mark Wells mark at wavetail.420.am
Tue Mar 16 01:37:27 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv24901/edit

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	cust_main_note.cgi 
Log Message:
RT#6226: fckeditor for customer notes

Index: cust_main_note.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main_note.cgi,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -w -d -r1.4 -r1.4.4.1
--- cust_main_note.cgi	13 Jan 2008 21:35:52 -0000	1.4
+++ cust_main_note.cgi	16 Mar 2010 08:37:24 -0000	1.4.4.1
@@ -8,9 +8,11 @@
 
 
 <BR><BR>
-<TEXTAREA NAME="comment" ROWS="12" COLS="60">
-<% $comment %>
-</TEXTAREA>
+<% include('/elements/htmlarea.html', 'field' => 'comment',
+                                      'curr_value' => $comment) %>
+% #<TEXTAREA NAME="comment" ROWS="12" COLS="60">
+% # <% $comment %>
+% #</TEXTAREA>
 
 <BR><BR>
 <INPUT TYPE="submit" VALUE="<% $notenum ? "Apply Changes" : "Add Note" %>">
@@ -33,6 +35,8 @@
   $comment = $note->comments;
 }
 
+$comment =~ s/\r//g; # remove weird line breaks to protect FCKeditor
+
 $cgi->param('custnum') =~ /^(\d+)$/ or die "illeagl custnum";
 my $custnum = $1;
 



More information about the freeside-commits mailing list