/home/techb158/immovalet.com/vendor/botble/plugin-management/public/js
Edit: /home/techb158/immovalet.com/vendor/botble/plugin-management/public/js/plugin.js (1728B)
(()=>{function e(e,n){for(var o=0;o
*"),window.location.reload()),n.removeClass("button-loading")},error:function(e){Botble.handleError(e),n.removeClass("button-loading")}})})),$(document).on("click",".btn-trigger-remove-plugin",(function(e){e.preventDefault(),$("#confirm-remove-plugin-button").data("plugin",$(e.currentTarget).data("plugin")),$("#remove-plugin-modal").modal("show")})),$(document).on("click","#confirm-remove-plugin-button",(function(e){e.preventDefault();var n=$(e.currentTarget);n.addClass("button-loading"),$.ajax({url:route("plugins.remove",{plugin:n.data("plugin")}),type:"DELETE",success:function(e){e.error?Botble.showError(e.message):(Botble.showSuccess(e.message),window.location.reload()),n.removeClass("button-loading"),$("#remove-plugin-modal").modal("hide")},error:function(e){Botble.handleError(e),n.removeClass("button-loading"),$("#remove-plugin-modal").modal("hide")}})}))}}])&&e(o.prototype,t),n}();$(document).ready((function(){(new n).init()}))})();