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

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



Revision: 1611
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1611&view=rev
Author:   tetragon
Date:     2007-09-15 09:04:59 -0700 (Sat, 15 Sep 2007)

Log Message:
-----------
Enabling trim on HTML, fixing elements.html to work with TT 2.15

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

Modified: trunk/LedgerSMB/Template/HTML.pm
===================================================================
--- trunk/LedgerSMB/Template/HTML.pm	2007-09-15 15:07:47 UTC (rev 1610)
+++ trunk/LedgerSMB/Template/HTML.pm	2007-09-15 16:04:59 UTC (rev 1611)
@@ -81,6 +81,7 @@
 		START_TAG => quotemeta('<?lsmb'),
 		END_TAG => quotemeta('?>'),
 		DELIMITER => ';',
+		TRIM => 1,
 		DEBUG => ($parent->{debug})? 'dirs': undef,
 		DEBUG_FORMAT => '',
 		}) || throw Error::Simple Template->error(); 

Modified: trunk/UI/elements.html
===================================================================
--- trunk/UI/elements.html	2007-09-15 15:07:47 UTC (rev 1610)
+++ trunk/UI/elements.html	2007-09-15 16:04:59 UTC (rev 1611)
@@ -128,7 +128,7 @@
 <?lsmb # OPTION ELEMENT ?>
 <?lsmb BLOCK option ?>
   <?lsmb  # Selected is a special case -- no attribute key, so it's handled here by looking for the option value in the default_values key.
-    IF element_data.defined('default_values') AND element_data.default_values.grep('^' _ option_data.value _ '$').size;
+    IF element_data.defined('default_values') AND element_data.default_values.grep("^${option_data.value}$").size;
       option_data.selected = " selected";
     ELSE;
       option_data.selected = "";


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