[ARVADOS] updated: c4faff1f289fc91d6dd8bfdf2ed38bd5e71dc2ad

git at public.curoverse.com git at public.curoverse.com
Tue Apr 8 10:30:20 EDT 2014


Summary of changes:
 .../workbench/app/views/application/index.html.erb |    6 +++---
 .../app/views/users/_setup_popup.html.erb          |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

       via  c4faff1f289fc91d6dd8bfdf2ed38bd5e71dc2ad (commit)
      from  b99a8116f6c09ad0eb6442e271e7b2eb8c9caa91 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit c4faff1f289fc91d6dd8bfdf2ed38bd5e71dc2ad
Author: radhika chippada <radhika at curoverse.com>
Date:   Tue Apr 8 10:29:40 2014 -0400

    Add paste event check for submit button validation

diff --git a/apps/workbench/app/views/application/index.html.erb b/apps/workbench/app/views/application/index.html.erb
index 96dc348..3f31240 100644
--- a/apps/workbench/app/views/application/index.html.erb
+++ b/apps/workbench/app/views/application/index.html.erb
@@ -8,12 +8,12 @@
 
     <% if controller.model_class.name == 'User' %>
       <%= link_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", setup_user_popup_path,
-        {class: 'btn btn-primary pull-right', :remote => true, 'data-toggle' =>  "modal", 
+        {class: 'btn btn-primary pull-right', :remote => true, 'data-toggle' =>  "modal",
           'data-target' => '#user-setup-modal-window', return_to: request.url}  %>
       <div id="user-setup-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>
     <% else %>
-      <%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", 
-        { action: 'create', return_to: request.url }, 
+      <%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}",
+        { action: 'create', return_to: request.url },
         { class: 'btn btn-primary pull-right' } %>
     <% end %>
 
diff --git a/apps/workbench/app/views/users/_setup_popup.html.erb b/apps/workbench/app/views/users/_setup_popup.html.erb
index c075ab5..ac2fd99 100644
--- a/apps/workbench/app/views/users/_setup_popup.html.erb
+++ b/apps/workbench/app/views/users/_setup_popup.html.erb
@@ -75,12 +75,12 @@
   var email_disabled = document.forms["setup_form"]["email"].disabled;
   var email_value = document.forms["setup_form"]["email"].value;
   var prefix_value = document.forms["setup_form"]["openid_prefix"].value;
-  if ((email_disabled == false) && (email_value == null || email_value == "" || 
+  if ((email_disabled == false) && (email_value == null || email_value == "" ||
         prefix_value == null || prefix_value == "")) {
     $register.attr('disabled', true);
   }
 
-  $input.keyup(function() {
+  $input.on('keyup paste mouseleave', function() {
     var trigger = false;
 
     var email_disabled = document.forms["setup_form"]["email"].disabled;
@@ -93,7 +93,7 @@
       validEmail = true;
     }
 
-    if ((email_disabled == false) && (!validEmail || email_value == null || 
+    if ((email_disabled == false) && (!validEmail || email_value == null ||
             email_value == "" || prefix_value == null || prefix_value == "")){
       trigger = true;
     }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list