[+] BO: Add Jquery alerts for nice alert box
This commit is contained in:
@@ -54,7 +54,7 @@ echo ' <tr>
|
||||
$(document).ready(function() {
|
||||
$(\'div#categoryList input.categoryBox\').click(function (){
|
||||
if ($(this).is(\':not(:checked)\') && $(\'div#categoryList input.id_category_default\').val() == $(this).val())
|
||||
alert(\''.utf8_encode(html_entity_decode($adminProducts->getL('Consider changing the default category.'))).'\');
|
||||
jAlert(\''.utf8_encode(html_entity_decode($adminProducts->getL('Consider changing the default category.'))).'\');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
alert('oups');
|
||||
jAlert('Technical error');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -123,7 +123,7 @@
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
alert("oups");
|
||||
jAlert('Technical error');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
</fieldset><br/>
|
||||
<script type="text/javascript">
|
||||
var ajaxQueries = new Array();
|
||||
function run_sync () {
|
||||
function run_sync()
|
||||
{
|
||||
$('#ajax_error').html('');
|
||||
$('#ajax_error').hide();
|
||||
$('#ajax_conf').html('');
|
||||
@@ -47,8 +48,9 @@
|
||||
|
||||
$('#ajax_loader').html('');
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert("TECHNICAL ERROR: unable to sync.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
jAlert("TECHNICAL ERROR: unable to sync.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);
|
||||
}
|
||||
});
|
||||
ajaxQueries.push(ajaxQuery);
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
if ($(this).attr('name') == 'category_reduction['+$('[name="id_category"]:checked').val()+']')
|
||||
{
|
||||
exist = true;
|
||||
alert('{l s='This category already exist for this group'}');
|
||||
jAlert('{l s='This category already exist for this group'}');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
//IE6 bug fix
|
||||
if(error != 'indexOf')
|
||||
errors += jsonData.errors[error] + "\n";
|
||||
alert(errors);
|
||||
jAlert(errors);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
},
|
||||
error: function(res,textStatus,jqXHR)
|
||||
{
|
||||
//alert("TECHNICAL ERROR"+res);
|
||||
//jAlert("TECHNICAL ERROR"+res);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -176,7 +176,7 @@
|
||||
},
|
||||
error: function(res,textStatus,jqXHR)
|
||||
{
|
||||
//alert("TECHNICAL ERROR"+res);
|
||||
//jAlert("TECHNICAL ERROR"+res);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -221,7 +221,7 @@
|
||||
},
|
||||
error: function(res,textStatus,jqXHR)
|
||||
{
|
||||
//alert("TECHNICAL ERROR"+res);
|
||||
//jAlert("TECHNICAL ERROR"+res);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -263,7 +263,7 @@
|
||||
},
|
||||
error: function(res,textStatus,jqXHR)
|
||||
{
|
||||
//alert("TECHNICAL ERROR"+res);
|
||||
//jAlert("TECHNICAL ERROR"+res);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -79,12 +79,12 @@
|
||||
var curPackItemQty = $('#curPackItemQty').val();
|
||||
if (curPackItemId == '' || curPackItemName == '')
|
||||
{
|
||||
alert(msg_select_one);
|
||||
jAlert(msg_select_one);
|
||||
return false;
|
||||
}
|
||||
else if (curPackItemId == '' || curPackItemQty == '')
|
||||
{
|
||||
alert(msg_set_quantity);
|
||||
jAlert(msg_set_quantity);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,8 +90,8 @@
|
||||
$('#add_table').click(function(){
|
||||
var table = $('#selectTables select').val();
|
||||
|
||||
if (table == 'null')
|
||||
alert("{l s='Please, choose table.'}");
|
||||
if (!table)
|
||||
jAlert("{l s='Please, choose table.'}");
|
||||
else
|
||||
AddRequestSql(table);
|
||||
});
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
// check if it's possible to add the product
|
||||
if (product_infos == null || $('#cur_product_name').val() == '')
|
||||
{
|
||||
alert('{l s='Thanks to select at least one product.'}');
|
||||
jAlert('{l s='Thanks to select at least one product.'}');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user