/** * Created by A.J on 2020/8/27. */$(document).ready(function(){$(".guanbi").click(function(){var n=$(this);n.children("span").removeClass("hidden"),$.post("manaplugin",{plugin:n.data("plugin"),chk:0,verification:$("#verification").text()},function(i){n.children("span").addClass("hidden"),"ok"==i&&(n.parent().prev().html('<span class="text-muted">'+$("#buxianshi").text()+"</span>"),n.addClass("hidden").next().removeClass("hidden"))})}),$(".qiyong").click(function(){var n=$(this);n.children("span").removeClass("hidden"),$.post("manaplugin",{plugin:n.data("plugin"),chk:1,verification:$("#verification").text()},function(i){n.children("span").addClass("hidden"),"ok"==i&&(n.parent().prev().html('<span class="text-success"><span class="glyphicon glyphicon-ok"></span> '+$("#xianshi").text()+"</span>"),n.addClass("hidden").prev().removeClass("hidden"))})}),$("table a.twitter").confirm({title:$("#quedingshanchu").text(),content:$("#bukehuifu").text(),confirmButton:$("#jixu").text(),cancelButton:$("#quxiao").text(),confirm:function(){var n=this.$target;$.post("delplugin",{plugin:n.data("plugin"),verification:$("#verification").text()},function(i){n.parent().parent().remove()})}}),$("#uploadplugin").click(function(){$("#uploadplugininput").click()}),$("#uploadplugininput").change(function(){".zip"==$("#uploadplugininput").val().substr(-4)?$.catfishcms()&&($("#uploadplugin").children("span").removeClass("hidden"),$("#uploadpluginform").submit()):$.alert({title:$("#chucuo").text(),content:$("#onlyzipfiles").text(),confirmButton:$("#queding").text()})})});