@@ -1599,11 +1600,11 @@ function deletePRAHandler() {
location.reload();
}else{
$("#modal-label-tmpl").html("Error");
if(val=="1"){
if(val=='1'){
$("#modal-body-tmpl").html("<div class='tx-nG6-pi1-error'>You don't have write permission on the specified directory.</div>");
}elseif(val=="2"){
}elseif(val=='2'){
$("#modal-body-tmpl").html("<div class='tx-nG6-pi1-error'>An error occurred during login. Most likely you didn't enter the username or password correctly. Be certain that you enter them precisely as they are, including upper/lower case.</div>");
}elseif(val=="3"){
}elseif(val=='3'){
$("#modal-body-tmpl").html("<div class='tx-nG6-pi1-error'>An error occurred during server connection. Please contact the site administrator.</div>");
// return codes : 0 = ok, 2 = authentication error, 3 = connexion error, 4 = the user doesn't have the rights
// For no reason I understand, the string returned is "\n\n<ret_code>", so we parse it to int.
val=parseInt(val);
if(val==0){
$("#ng6modal").modal('hide');
//Run switch_space_id workflow
$('#change_space_id_form').wfform('run');
}else{
$("#modal-label-tmpl").html("Error");
if(val==2){
$("#modal-body-tmpl").html("<div class='tx-nG6-pi1-error'>An error occurred during login. Most likely you didn't enter the username or password correctly. Be certain that you enter them precisely as they are, including upper/lower case.</div>");
}elseif(val==3){
$("#modal-body-tmpl").html("<div class='tx-nG6-pi1-error'>An error occurred during server connection. Please contact the site administrator.</div>");
}elseif(val==4){
$("#modal-body-tmpl").html("<div class='tx-nG6-pi1-error'>The user you entered doesn't have the rights to perform this action.</div>");