From b53accc85199b2f2ed9a954608d02aab7d9d7c16 Mon Sep 17 00:00:00 2001
From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab>
Date: Fri, 17 Oct 2014 09:17:54 +0000
Subject: [PATCH] Fix tab 4 problem with dialog opening Setting :
 e.stopPropagation();         e.preventDefault();         return false;

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@33 047e039d-479c-447e-8a29-aa6bf4a09bab
---
 templates/web/validate_token.tt2.html | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/templates/web/validate_token.tt2.html b/templates/web/validate_token.tt2.html
index 5312676..a89d55b 100644
--- a/templates/web/validate_token.tt2.html
+++ b/templates/web/validate_token.tt2.html
@@ -6,17 +6,20 @@ jQuery(document).ready(function($){
     $( ".account_details" ).dialog({
         title: "Account details",
         autoOpen: false,
+        width: 0.8*$(window).width(),
         buttons: {
             Ok: function() {
                 $( this ).dialog( "close" );
             }
         }
     });
-    [% FOREACH account IN test_accounts %]
-    $( "#show_account_details_[% account.get('id') %]" ).click(function() {
-        $("#account_details_[% account.get('id') %]").dialog( "open" );
+    $( ".show_account_details" ).click(function(e) {
+        var id = $(this).attr('id').substr(5);
+        $("#" + id).dialog( "open" );
+        e.stopPropagation();
+        e.preventDefault();
+        return false;
     });
-    [% END %]
 });
 
 </script>
-- 
GitLab