From 6d7aa1b40105352f3e2edd4580835ec7ba7fb62c Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 26 Dec 2019 06:16:13 +0000 Subject: [PATCH] Added optional $event param to SelectorOptions() --- includes/functions.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 1c4c5150..0eef6694 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -142,19 +142,21 @@ function isAssoc($arr) /** * * Display a selector field for a form. Arguments are: -* $name: Field name -* $options: Array of options -* $selected: Selected option (optional) -* If $options is an associative array this should be the key -* +* @param string $name: Field name +* @param array $options: Array of options +* @param string $selected: Selected option (optional) +* @param string $id: $options is an associative array this should be the key +* @param string $event: onChange event (optional) */ -function SelectorOptions($name, $options, $selected = null, $id = null) +function SelectorOptions($name, $options, $selected = null, $id = null, $event = null) { echo '