console.log(); $("#btnallcahe").click(function () { var textbtn =$("#btnallcahe").text(); $("#btnallcahe").addClass('disabled'); $("#btnallcahe").attr('disabled',true); $("#btnallcahe").html(' '+textbtn); $.ajaxSetup({ headers: { 'csrftoken' : '{{ tokenajax }}' } }); $.ajax({ type: "POST", url: "./{{users}}/index.php?module=vdomaincache&acc=drop&type=all", complete: function(datos){ //console.log(datos.responseText); noti_bubble('{{langmod.VDLABEL7}}','','success',false,false,'3000',true); $("#btnallcahe").removeClass('disabled'); $("#btnallcahe").attr('disabled',false); $("#btnallcahe").html(textbtn); return false; } }); }); function clearcachedomins(domain){ var nameid = domain.replace(".", ""); var textbtn =$("#"+nameid).text(); $("#"+nameid).addClass('disabled'); $("#"+nameid).attr('disabled',true); $("#"+nameid).html(' '+textbtn); $.ajaxSetup({ headers: { 'csrftoken' : '{{ tokenajax }}' } }); $.ajax({ type: "POST", url: "./{{users}}/index.php?module=vdomaincache&acc=drop&domain="+domain, complete: function(datos){ //console.log(datos.responseText); noti_bubble('{{langmod.VDLABEL7}}','','success',false,false,'3000',true); $("#"+nameid).removeClass('disabled'); $("#"+nameid).attr('disabled',false); $("#"+nameid).html(textbtn); return false; } }); } function loaderdatatable(){ $.ajax({ type: "POST", url: "./{{users}}/index.php?module=vdomaincache&acc=list", complete: function(datos){ if(datos.responseText==0){ $('#btnallcahe').hide(); $('#tabvdomain tfoot').html('
{{ langmod.VDLABEL9 }}