ordersprinter/gastsystem/js/utilities.js

1 line
348 B
JavaScript
Raw Normal View History

2020-11-19 23:10:06 +01:00
function doAjax(a,b,e,d,c,f){if(typeof f==="undefined"){f=false}$.ajax({type:a,url:b,dataType:"json",data:e,async:f,success:function(g){if(d!=null){d(g)}},error:function(k,g,h){if(b!="php/debug.php"){var i={cmd:b,fct:d.name,xhr:k.responseText,errormsg:c,status:g};if(c!=null){var j=c+h+" ("+b+")";alert("Kommunikationsfehler zum Server: "+j)}}}})};