[ARVADOS] updated: dfd5b53fdec053ba4423e25e9b6e0ef0e31b7b5c
git at public.curoverse.com
git at public.curoverse.com
Mon Apr 7 15:04:23 EDT 2014
Summary of changes:
.../app/views/users/_setup_popup.html.erb | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
via dfd5b53fdec053ba4423e25e9b6e0ef0e31b7b5c (commit)
from 4f4a7b5cd651f17cdb0a1eb0179be2ba89efe1c4 (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 dfd5b53fdec053ba4423e25e9b6e0ef0e31b7b5c
Author: radhika chippada <radhika at radhika.curoverse>
Date: Mon Apr 7 15:04:06 2014 -0400
Reset form fields on cancel.
diff --git a/apps/workbench/app/views/users/_setup_popup.html.erb b/apps/workbench/app/views/users/_setup_popup.html.erb
index e8a8043..784ab6e 100644
--- a/apps/workbench/app/views/users/_setup_popup.html.erb
+++ b/apps/workbench/app/views/users/_setup_popup.html.erb
@@ -2,7 +2,7 @@
class: 'form-search', remote: true} do %>
<div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
+ <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title">Setup User</h4>
</div
@@ -70,7 +70,7 @@
<div class="modal-footer">
<button type="submit" id="register" class="btn btn-primary" autofocus>Submit</button>
- <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
+ <button class="btn btn-default" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
<% end %>
@@ -107,4 +107,12 @@
trigger ? $register.attr('disabled', true) : $register.removeAttr('disabled');
});
+
+ function reset_form() {
+ $('#email').val("");
+ $('#openid_prefix').val("");
+ $('#repo_name').val("");
+ $('select').val('')
+ }
+
</script>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list