[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1621] trunk/UI/elements.html
- Subject: SF.net SVN: ledger-smb: [1621] trunk/UI/elements.html
- From: ..hidden..
- Date: Sun, 16 Sep 2007 17:07:35 -0700
Revision: 1621
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1621&view=rev
Author: tetragon
Date: 2007-09-16 17:07:35 -0700 (Sun, 16 Sep 2007)
Log Message:
-----------
Adding select patch from hunmonk
Modified Paths:
--------------
trunk/UI/elements.html
Modified: trunk/UI/elements.html
===================================================================
--- trunk/UI/elements.html 2007-09-16 19:52:27 UTC (rev 1620)
+++ trunk/UI/elements.html 2007-09-17 00:07:35 UTC (rev 1621)
@@ -102,6 +102,17 @@
<?lsmb # SELECT ELEMENT ?>
<?lsmb BLOCK select ?>
<?lsmb IF element_data # Only process element if one exists. ?>
+ <?lsmb IF element_data.defined('default_values') ?>
+ <?lsmb # Undef items must be removed, or they choke in the options defaults check later.
+ i = 0;
+ FOREACH select_default IN element_data.default_values;
+ UNLESS select_default.defined;
+ element_data.default_values = element_data.default_values.splice(1, i);
+ END;
+ i = i + 1;
+ END;
+ ?>
+ <?lsmb END ?>
<?lsmb
element_type = 'select';
PROCESS auto_id;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.