diff --git a/lam/docs/devel/modules-specification.htm b/lam/docs/devel/modules-specification.htm
index a618232b..87a6c322 100644
--- a/lam/docs/devel/modules-specification.htm
+++ b/lam/docs/devel/modules-specification.htm
@@ -1,5 +1,6 @@
+
Module specification
-
-
-
+
This document describes the module
interface for LDAP Account Manager
@@ -1069,8 +1068,10 @@ false)
size: The size of the
select field, if set to 1 a dropdown box will be displayed.
noSorting: If set to
-true then the entries will not be sorted. Default is false.
+true then the entries will not be sorted. Default is false.
+ onchange: onchange event
+
table: Adds a table. Can
be used recursively.
diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc
index 3a05f0a7..19fc651d 100644
--- a/lam/lib/modules.inc
+++ b/lam/lib/modules.inc
@@ -635,6 +635,9 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, &$tabindex
$ret[$input[$i][$j]['name']] = 'select'; // save type
}
echo ' size="' . $input[$i][$j]['size'] . '"';
+ if (!$restricted && isset($input[$i][$j]['onchange'])) {
+ echo ' onchange="' . htmlspecialchars($input[$i][$j]['onchange']) . '"';
+ }
// Show taborder
echo " tabindex=$tabindex";
$tabindex++;