From d8275fad4ea248103002d0eead5b8459bf435925 Mon Sep 17 00:00:00 2001 From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab> Date: Fri, 17 Oct 2014 09:51:40 +0000 Subject: [PATCH] In tab 2, allow to select the label to check the corresponding input git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@34 047e039d-479c-447e-8a29-aa6bf4a09bab --- templates/web/select_sp.tt2.html | 8 ++++++++ templates/web/validate_token.tt2.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/web/select_sp.tt2.html b/templates/web/select_sp.tt2.html index 394051e..ad27e9c 100644 --- a/templates/web/select_sp.tt2.html +++ b/templates/web/select_sp.tt2.html @@ -40,3 +40,11 @@ administrator to add ContactPerson information to the SAML metadata. </fieldset> +<script type="text/javascript"> + $(function() { + $('label[for="email_address"]').on('click', function() { + var input = $(this).prev(); + input.val([input.attr('value')]); + }); + }); +</script> \ No newline at end of file diff --git a/templates/web/validate_token.tt2.html b/templates/web/validate_token.tt2.html index a89d55b..b3641ee 100644 --- a/templates/web/validate_token.tt2.html +++ b/templates/web/validate_token.tt2.html @@ -13,7 +13,7 @@ jQuery(document).ready(function($){ } } }); - $( ".show_account_details" ).click(function(e) { + $( ".show_account_details" ).on('click', function(e) { var id = $(this).attr('id').substr(5); $("#" + id).dialog( "open" ); e.stopPropagation(); -- GitLab