From: jeff Date: Thu, 28 Dec 2006 20:52:00 +0000 (+0000) Subject: activate submit button more readily X-Git-Tag: TRIXBOX_2_6~804 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=af71b2b56cd66e28c6016091284883cb1105091d activate submit button more readily --- 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;