summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorjeff <jeff>2006-12-28 20:52:00 +0000
committerjeff <jeff>2006-12-28 20:52:00 +0000
commitaf71b2b56cd66e28c6016091284883cb1105091d (patch)
tree58235dbfe7fb52c3169e6756fc4fdc5568ac95c8 /httemplate/elements
parent0d6bdb9706b6925e4be85d7dabfb9155e1d1f2aa (diff)
activate submit button more readily
Diffstat (limited to 'httemplate/elements')
-rwxr-xr-xhttemplate/elements/tr-select-reason.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/elements/tr-select-reason.html b/httemplate/elements/tr-select-reason.html
index 0c05ae74e..2f8f3a109 100755
--- a/httemplate/elements/tr-select-reason.html
+++ b/httemplate/elements/tr-select-reason.html
@@ -3,13 +3,14 @@
function sh_add<% $name %>()
{
-%if ($curuser->access_right($access_right)){
if (document.getElementById('<% $name %>').selectedIndex == 0){
<% $controlledbutton ? $controlledbutton.'.disabled = true;' : ';' %>
}else{
<% $controlledbutton ? $controlledbutton.'.disabled = false;' : ';' %>
}
+%if ($curuser->access_right($access_right)){
+
if (document.getElementById('<% $name %>').selectedIndex ==
(document.getElementById('<% $name %>').length - 1)) {
document.getElementById('new<% $name %>').disabled = false;