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

This commit is contained in:
rMalie
2011-12-28 14:18:20 +00:00
parent 29f8448a80
commit 490a5cff46
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);
}
});
}