summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UI/lib/elements.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/UI/lib/elements.html b/UI/lib/elements.html
index 7887525d..8b6900c2 100644
--- a/UI/lib/elements.html
+++ b/UI/lib/elements.html
@@ -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;