[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6386] trunk



Revision: 6386
          http://sourceforge.net/p/ledger-smb/code/6386
Author:   einhverfr
Date:     2014-01-05 11:01:52 +0000 (Sun, 05 Jan 2014)
Log Message:
-----------
Unescape support added.  Now the issues are rendering issues with Dojo

Modified Paths:
--------------
    trunk/LedgerSMB/Template/HTML.pm
    trunk/UI/templates/edit.html

Modified: trunk/LedgerSMB/Template/HTML.pm
===================================================================
--- trunk/LedgerSMB/Template/HTML.pm	2014-01-05 10:22:26 UTC (rev 6385)
+++ trunk/LedgerSMB/Template/HTML.pm	2014-01-05 11:01:52 UTC (rev 6386)
@@ -121,6 +121,7 @@
         } 
         $dojo_theme ||= $LedgerSMB::Sysconfig::dojo_theme;
 	$cleanvars->{dojo_theme} ||= $dojo_theme;
+        $cleanvars->{UNESCAPE} = sub { return unescapeHTML('<test>') . unescapeHTML(shift @_) };
 	
 	if ($parent->{outputfile}) {
 		$output = "$parent->{outputfile}.html";

Modified: trunk/UI/templates/edit.html
===================================================================
--- trunk/UI/templates/edit.html	2014-01-05 10:22:26 UTC (rev 6385)
+++ trunk/UI/templates/edit.html	2014-01-05 11:01:52 UTC (rev 6386)
@@ -6,7 +6,7 @@
  END; ?></div>
 <form action="template.pl" method="post">
 <textarea class="template-body <?lsmb format ?>" 
-    cols=80><?lsmb content ?></textarea><br/>
+    cols=80><?lsmb UNESCAPE(content) ?></textarea><br/>
 <?lsmb 
 PROCESS input element_data = {
     type = 'hidden'

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits