RT future ticket resolve, #13853
[freeside.git] / rt / share / html / Elements / SelectStatus
index 7aa7aa5..5718a2a 100755 (executable)
@@ -45,7 +45,8 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
-<select name="<%$Name%>">
+% my $onchange_attr = $onchange ? " onchange=\"$onchange\"" : '';
+<select id="<%$Name%>" name="<%$Name%>"<% $onchange_attr |n%>>
 %if ($DefaultValue) {
 <option value=""<% !$Default && qq[ selected="selected"] |n %>><%$DefaultLabel%></option>
 %}
@@ -64,4 +65,5 @@ $Default => ''
 $SkipDeleted => 0
 $DefaultValue => 1
 $DefaultLabel => "-"
+$onchange => ''
 </%ARGS>