function backupbuddy_save_textarea_as_file(t,e){var i=new Blob([jQuery(t).text()],{type:"text/plain"}),o="backupbuddy-"+e+".txt",a=document.createElement("a");a.download=o,a.innerHTML="Download File",a.setAttribute("target","_new"),a.href=window.URL.createObjectURL(i),a.onclick=backupbuddy_destroyClickedElement,a.style.display="none",document.body.appendChild(a),a.click()}function backupbuddy_destroyClickedElement(t){document.body.removeChild(t.target)}jQuery((function(t){t(".pluginbuddy_tip").tooltip({classes:{"ui-tooltip":"backups-tooltip"},position:{my:"center bottom",at:"center top-10",using:function(e,i){t(this).css(e),t(this).addClass(i.vertical)}},open:function(e,i){t(i.tooltip).addClass("ui-tooltip-show")},close:function(e,i){t(i.tooltip).removeClass("ui-tooltip-show")},hide:!1}),t(".pb_backupbuddy_disalert").on("click",(function(e){e.preventDefault();var i=t(this).parents(".pb_backupbuddy_alert").attr("rel");if(""!==i&&void 0!==i){var o=t(this).attr("alt");t.post(o,{unique_id:i},(function(i){"1"!=(i=t.trim(i))&&alert("Error saving dismissal. Error: "+i),e.currentTarget.href&&(window.location.href=e.currentTarget.href)})),t(this).parents(".pb_backupbuddy_alert").slideUp()}else t(this).parents(".pb_backupbuddy_alert").slideUp()}))}));
