X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-reason.html;h=2f8f3a10959dfbb23e1ef5a4fbebcbc41f7e4581;hb=2ef0947ad899d67b8d34a5d3519f22f4e40b42ec;hp=0c05ae74e674902114e54d37343e0fdd20c21639;hpb=9811b8ce65909a293810ddbcd8c9b5ca963fba01;p=freeside.git 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;