From 0b7476bb07ce08aae453380059a285436b403115 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 19 Jan 2008 13:06:03 +0000 Subject: [PATCH] added onchange for select in meta HTML --- lam/docs/devel/modules-specification.htm | 9 +++++---- lam/lib/modules.inc | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) 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++;