summaryrefslogtreecommitdiff
path: root/rt/share/html/Admin/Elements/SelectScripCondition
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Admin/Elements/SelectScripCondition')
-rwxr-xr-xrt/share/html/Admin/Elements/SelectScripCondition5
1 files changed, 4 insertions, 1 deletions
diff --git a/rt/share/html/Admin/Elements/SelectScripCondition b/rt/share/html/Admin/Elements/SelectScripCondition
index 34e700d9e..516766157 100755
--- a/rt/share/html/Admin/Elements/SelectScripCondition
+++ b/rt/share/html/Admin/Elements/SelectScripCondition
@@ -45,7 +45,10 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<select name="<%$Name%>">
+<select name="<%$Name%>"
+onchange="var idobj = document.getElementsByName('id')[0];
+if (idobj.value=='new') idobj.value = '';
+form.submit()">
<option value=""
<% ! defined $Default && qq[ selected="selected"] %>
>-</option>