Edit File: litespeed-custom.min.js
function lswsInitDropdownBoxes(){var s,e=document.getElementsByClassName("accordion");for(s=0;s<e.length;s++)e[s].addEventListener("click",function(){this.classList.toggle("active");var s=this.nextElementSibling;s.style.maxHeight?s.style.maxHeight=null:s.style.maxHeight=s.scrollHeight+"px"})}function lswsCollapseDropdownBox(s){s.classList.remove("active"),s.nextElementSibling.style.maxHeight=null}function lswsWriteToMsgBox(s,e,t){void 0==t&&(t=!1);var l={succ:"div#succMsgs",err:"div#errMsgs"}[e];return t&&$(l+" ul").empty(),void 0!==s&&0!==s.length&&(s.forEach(function(s){$(l+" ul").append("<li>"+s+"</li>")}),!0)}function flushCache(s,e){void 0==e&&(e=!0),confirm("Flushing LSCache will remove all cache files under "+s+". Flush LSCache?")&&$.getJSON("./ls_web_cache_manager/ls_web_cache_manager.live.php?do=flush",function(s){var t="initial",l="none",a=l,n=l,i=l,c=s.succMsgs,o=s.errMsgs,r=0;lswsWriteToMsgBox(o,"err",e)&&(a=t,r=o.length,n=t);var g=$("span#errMsgCnt"),d=(e?0:parseInt(g.text()))+r;(g.html(d),0==d)&&lswsCollapseDropdownBox(g.closest("button")[0]);g.closest("button").css("display",n),lswsWriteToMsgBox(c,"succ",e)&&(a=t,i=t),$("div#succMsgs").css("display",i),$("div#display-msgs").css("display",a)})}function restartPHP(s){void 0==s&&(s=!0),confirm("Restart all detached PHP processes?")&&$.getJSON("./ls_web_cache_manager/ls_web_cache_manager.live.php?do=restartPHP",function(e){var t="initial",l="none",a=l,n=l,i=l,c=e.succMsgs,o=e.errMsgs,r=0;lswsWriteToMsgBox(o,"err",s)&&(a=t,r=o.length,n=t);var g=$("span#errMsgCnt"),d=(s?0:parseInt(g.text()))+r;(g.html(d),0==d)&&lswsCollapseDropdownBox(g.closest("button")[0]);g.closest("button").css("display",n),lswsWriteToMsgBox(c,"succ",s)&&(a=t,i=t),$("div#succMsgs").css("display",i),$("div#display-msgs").css("display",a)})}function lscmSaveSettings(s){void 0==s&&(s=!0);var e=document.getElementById("lscmLogLvl"),t=e.options[e.selectedIndex].value;$.getJSON("./ls_web_cache_manager/ls_web_cache_manager.live.php?do=save_settings&log_file_lvl="+t,function(e){var t="initial",l="none",a=l,n=l,i=l,c=e.succMsgs,o=e.errMsgs,r=0;lswsWriteToMsgBox(o,"err",s)&&(a=t,r=o.length,n=t);var g=$("span#errMsgCnt"),d=(s?0:parseInt(g.text()))+r;(g.html(d),0==d)&&lswsCollapseDropdownBox(g.closest("button")[0]);g.closest("button").css("display",n),lswsWriteToMsgBox(c,"succ",s)&&(a=t,i=t),$("div#succMsgs").css("display",i),$("div#display-msgs").css("display",a)})}function lscwpValidateSelectFormSubmit(s,e){var t=!1;if($("#lsws-data-table input:checkbox").each(function(){if($(this).prop("checked"))return t=!0,!1}),t){if("disable_sel"!=s||confirm("LSCWP configuration may be lost when disabling. Disable anyway?")){var l=$('form[name="lswsform"]');$("<input>",{type:"hidden",name:s,value:e}).appendTo(l),l.submit()}}else alert("Please select at least one checkbox.")}$("#lswsContent").load("ls_web_cache_manager/ls_web_cache_manager.live.php"+window.location.search);