[+] BO: Add Jquery alerts for nice alert box

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11845 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-28 14:18:20 +00:00
parent b5e6f2cb75
commit 38086c5dc6
21 changed files with 342 additions and 49 deletions
+10 -10
View File
@@ -67,17 +67,17 @@ $(document).ready(function() {
url: 'ajax-tab.php',
dataType : 'json',
success: function(data) {
if(!data)
alert("TECHNICAL ERROR - no return status found");
else if(data.status != "ok")
alert("TECHNICAL ERROR: "+data.msg);
if (!data)
jAlert("TECHNICAL ERROR - no return status found");
else if (data.status != "ok")
jAlert("TECHNICAL ERROR: "+data.msg);
$('#adminpresentation').slideUp('slow');
},
error: function(data, textStatus, errorThrown)
{
alert("TECHNICAL ERROR: "+data);
jAlert("TECHNICAL ERROR: "+data);
}
});
}
@@ -131,10 +131,10 @@ $(document).ready(function() {
url: 'ajax-tab.php',
dataType : 'json',
success: function(data) {
if(!data)
alert("TECHNICAL ERROR - no return status found");
else if(data.status != "ok")
alert("TECHNICAL ERROR: "+data.msg);
if (!data)
jAlert("TECHNICAL ERROR - no return status found");
else if (data.status != "ok")
jAlert("TECHNICAL ERROR: "+data.msg);
if(data.upgrade.need_upgrade)
{
$('#blockNewVersionCheck').children("a").attr('href',data.upgrade.link);
@@ -146,7 +146,7 @@ $(document).ready(function() {
},
error: function(data, textStatus, errorThrown)
{
alert("TECHNICAL ERROR: "+data);
jAlert("TECHNICAL ERROR: "+data);
}
});
}