3114: bug fix: 'Copy' button is now disabled until a project has been selected for...
authorPhil Hodgson <bitbucket@philhodgson.net>
Wed, 13 Aug 2014 15:09:55 +0000 (11:09 -0400)
committerPhil Hodgson <bitbucket@philhodgson.net>
Wed, 13 Aug 2014 15:09:55 +0000 (11:09 -0400)
apps/workbench/app/views/projects/_choose.html.erb

index 3d55041cb8ca834db93f954406e3e5801e8a5c87..82b948545073b9c5b6e0515d6935a6cf452f1478 100644 (file)
@@ -42,7 +42,7 @@
 
       <div class="modal-footer">
         <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
-        <button class="btn btn-primary" aria-hidden="true"><%= params[:action_name] || 'Select' %></button>
+        <button class="btn btn-primary" aria-hidden="true" data-enable-if-selection disabled><%= params[:action_name] || 'Select' %></button>
         <div class="modal-error hide" style="text-align: left; margin-top: 1em;">
         </div>
       </div>