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();
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();
}
}
});
- //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();
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();
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();
jQuery("#span_email").hide();
jQuery("#emailval").show();
jQuery("#edit_email").show();
- }); */
+ });
//upload pub keys
jQuery("#upload_file").click(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();
});
});
-// 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()
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()
{