[*] BO : moved 2 javascript functions to display success or error on AdminAccess are now available everywhere (thanks to Loic)

This commit is contained in:
mMarinetti
2011-09-28 07:32:39 +00:00
parent 48d4488816
commit 1d32caf319
3 changed files with 19 additions and 12 deletions
-11
View File
@@ -140,16 +140,6 @@ class AdminAccess extends AdminTab
});
});
function showSuccessMessage(msg)
{
$("#ajax_confirmation").show().html("<div style=\"background-color:green;color:white;padding:20px;position:fixed;bottom:0;width:100%;left:0;text-align:center;\">"+msg+"</div>").delay(3000).fadeOut("slow");
}
function showErrorMessage(msg)
{
$("#ajax_confirmation").show().html("<div class=\"error\"><img src=\"../img/admin/error.png\" alt=\"ERROR\" />"+msg+"</div>");
}
</script>';
}
/**
@@ -174,7 +164,6 @@ class AdminAccess extends AdminTab
<script type="text/javascript">
setLang(Array(\''.$this->l('Profile updated').'\', \''.$this->l('Request failed!').'\', \''.$this->l('Update in progress. Please wait.').'\', \''.$this->l('Server connection failed!').'\'));
</script>
<div id="ajax_confirmation"></div>
<table class="table float" cellspacing="0">
<tr>
<th '.($currentProfile == (int)_PS_ADMIN_PROFILE_ ? 'colspan="6"' : '').'>