activate submit button more readily
authorjeff <jeff>
Thu, 28 Dec 2006 20:52:00 +0000 (20:52 +0000)
committerjeff <jeff>
Thu, 28 Dec 2006 20:52:00 +0000 (20:52 +0000)
httemplate/elements/tr-select-reason.html

index 0c05ae7..2f8f3a1 100755 (executable)
@@ -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;