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

SF.net SVN: ledger-smb: [1968] trunk/UI/lib/elements.html



Revision: 1968
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1968&view=rev
Author:   einhverfr
Date:     2007-12-08 14:43:05 -0800 (Sat, 08 Dec 2007)

Log Message:
-----------
fixed undef's and select boxes.

Modified Paths:
--------------
    trunk/UI/lib/elements.html

Modified: trunk/UI/lib/elements.html
===================================================================
--- trunk/UI/lib/elements.html	2007-12-08 22:36:31 UTC (rev 1967)
+++ trunk/UI/lib/elements.html	2007-12-08 22:43:05 UTC (rev 1968)
@@ -104,13 +104,13 @@
   <?lsmb IF element_data  # Only process element if one exists. ?>
     <?lsmb IF element_data.defined('text_attr') ?>
         <?lsmb text_attr =  element_data.text_attr ?>
-        <?lsmb element.text_attr = undef ?>
+        <?lsmb element.delete('text_attr') ?>
     <?lsmb ELSE ?>
 	<?lsmb text_attr = 'text' ?>
     <?lsmb END ?>
     <?lsmb IF element_data.defined('value_attr') ?>
         <?lsmb text_attr =  element_data.value_attr ?>
-        <?lsmb element.value_attr = undef ?>
+        <?lsmb element.delete('value_attr') ?>
     <?lsmb ELSE ?>
 	<?lsmb value_attr = 'value' ?>
     <?lsmb END ?>
@@ -156,7 +156,7 @@
   <?lsmb IF element_data.defined('text_attr');
 	option_data.text = option_data.$text_attr;
     END ?>
-  <?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.
+  <?lsmb  # Selected is a special case -- no attribute key, so it is 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;
     option_data.selected = ' selected="selected"';
     ELSE;


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