X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fstatic%2Fjs%2Fmy_account.edit_profile.js;h=f98427e9e4d9838a9df90de7292cbd813e2f71d7;hb=350a118a4f8e3329f39fe7f245cb27388a3756f0;hp=dcbfbb3057e508554dc6bb3dd7f493f148665040;hpb=dd0b1375ac0bd19f45a8cfb73673ac038df26878;p=myslice.git diff --git a/portal/static/js/my_account.edit_profile.js b/portal/static/js/my_account.edit_profile.js index dcbfbb30..f98427e9 100644 --- a/portal/static/js/my_account.edit_profile.js +++ b/portal/static/js/my_account.edit_profile.js @@ -20,9 +20,9 @@ jQuery(document).ready(function(){ jQuery("#span_pass").hide(); jQuery("#edit_pass").show(); jQuery("#passval").show(); - jQuery("#span_aff").hide(); - jQuery("#edit_aff").show(); - jQuery("#affval").show(); + jQuery("#span_auth").hide(); + jQuery("#edit_auth").show(); + jQuery("#authval").show(); jQuery("#span_email").hide(); jQuery("#edit_email").show(); jQuery("#emailval").show(); @@ -49,9 +49,9 @@ jQuery(document).ready(function(){ jQuery("#span_name").hide(); jQuery("#edit_name").show(); jQuery("#nameval").show(); - jQuery("#span_aff").hide(); - jQuery("#edit_aff").show(); - jQuery("#affval").show(); + jQuery("#span_auth").hide(); + jQuery("#edit_aauth").show(); + jQuery("#authval").show(); jQuery("#span_email").hide(); jQuery("#edit_email").show(); jQuery("#emailval").show(); @@ -77,12 +77,12 @@ jQuery(document).ready(function(){ } } }); - //edit affiliation - jQuery("#edit_aff").click(function(){ + //edit authority + jQuery("#edit_auth").click(function(){ - jQuery("#span_aff").show(); - jQuery("#affval").hide(); - jQuery("#edit_aff").hide(); + jQuery("#span_auth").show(); + jQuery("#authval").hide(); + jQuery("#edit_auth").hide(); // enforcing when one edit is clicked the rest will not work at same time jQuery("#span_pass").hide(); jQuery("#edit_pass").show(); @@ -98,14 +98,14 @@ jQuery(document).ready(function(){ jQuery("#dl_file").show(); jQuery("#upload_file").show(); }); - jQuery("#cancel_aff_change").click(function(){ + jQuery("#cancel_auth_change").click(function(){ - jQuery("#span_aff").hide(); - jQuery("#affval").show(); - jQuery("#edit_aff").show(); + jQuery("#span_auth").hide(); + jQuery("#authval").show(); + jQuery("#edit_auth").show(); }); //edit email - /* edit email will be done by PI if needed + //edit email will be done by PI if needed jQuery("#edit_email").click(function(){ jQuery("#span_email").show(); @@ -115,9 +115,9 @@ jQuery(document).ready(function(){ jQuery("#span_pass").hide(); jQuery("#edit_pass").show(); jQuery("#passval").show(); - jQuery("#span_aff").hide(); - jQuery("#edit_aff").show(); - jQuery("#affval").show(); + jQuery("#span_auth").hide(); + jQuery("#edit_auth").show(); + jQuery("#authval").show(); jQuery("#span_name").hide(); jQuery("#edit_name").show(); jQuery("#nameval").show(); @@ -131,7 +131,7 @@ jQuery(document).ready(function(){ jQuery("#span_email").hide(); jQuery("#emailval").show(); jQuery("#edit_email").show(); - }); */ + }); //upload pub keys jQuery("#upload_file").click(function(){ @@ -146,9 +146,9 @@ jQuery(document).ready(function(){ jQuery("#span_pass").hide(); jQuery("#edit_pass").show(); jQuery("#passval").show(); - jQuery("#span_aff").hide(); - jQuery("#edit_aff").show(); - jQuery("#affval").show(); + jQuery("#span_auth").hide(); + jQuery("#edit_auth").show(); + jQuery("#authval").show(); jQuery("#span_email").hide(); jQuery("#edit_email").show(); jQuery("#emailval").show(); @@ -162,16 +162,19 @@ jQuery(document).ready(function(){ }); }); -// alert box for the "Generate new Key Pair button" -function myFunction() + +function editAlert() { -alert("You have requested to generate new key pairs. Please download and save the new keypairs after receiving the success message."); +alert("You can't edit email/authority. Please contact support and specify your requirements."); +window.location.href = "/portal/contact/"; } -function emailAlert() + +/* +// alert box for the "Generate new Key Pair button" +function myFunction() { -alert("To edit email please contact the administratior. You will be redirected to the support page now"); -window.location.href = "/portal/contact/"; +alert("You have requested to generate new key pairs. Please download and save the new keypairs after receiving the success message."); } function affAlert() @@ -179,7 +182,7 @@ function affAlert() alert("To edit affiliation please contact the administratior. You will be redirected to the support page now"); window.location.href = "/portal/contact/"; } -/* + // alert having ok or cancel option function show_confirm() {