text: $(".js_cat-add").click(function(a){a.preventDefault(),$.ajax(this.href,{success:function(a){$("#js_actionDrawer__content").html($(a)),$("#form-create-category").submit(function(a){var e=$("input[name=catName]").val(),r={catName:e};$.ajax({type:"POST",url:"atomic-core/temp-processing/temp-create-category.php",data:r,dataType:"json",encode:!0}).done(function(a){a.success?window.location="atomic-core/?cat="+e:(a.errors.exists&&($(".aa_errorBox__message").html(""),$(".aa_actionDrawer").prepend('<div class="aa_errorBox"><p class="aa_errorBox__message"><i class="fa fa-times aa_js-errorBox__close"></i> '+a.errors.exists+"</p></div>").find(".aa_errorBox").hide().fadeIn(200)),a.errors.name&&($(".aa_errorBox__message").html(""),$(".aa_actionDrawer").prepend('<div class="aa_errorBox"><p class="aa_errorBox__message"><i class="fa fa-times aa_js-errorBox__close"></i> '+a.errors.name+"</p></div>").find(".aa_errorBox").hide().fadeIn(200)))}).fail(function(a){console.log(a)}),a.preventDefault()})},error:function(){}})});