MyAcc: using JS confirm instead of JS Alert
[unfold.git] / portal / static / js / my_account.edit_profile.js
index dcbfbb3..70607ba 100644 (file)
@@ -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()
 {