Backup/Discuz.Web/javascript/template_modcp.js
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function display(id) {
jQuery("#auditreason_" + id).show();
}
var newCheckAll = function (formId,checked) {
jQuery("#" + formId + " :checkbox").attr("checked", checked);
}
var optionCheckedTopics = function (option, reason) {
var tableid = $('tablelist').value;
var tidlist = "";
jQuery(":checkbox[name='audittopicid']:checked").each(function (i) {
tidlist = tidlist + this.value + ','
});
tidlist = tidlist.slice(0, tidlist.length - 1);
if (tidlist == "") {
alert("请至少选择一条主题!");
} else {
_sendRequest('tools/ajax.aspx?t=' + option + 'topic&tid=' + tidlist + "&reason=" + reason + "&tableid=" + tableid, optionCheckedTopics_callback, false);
}
}
function optionCheckedTopics_callback(doc) {
if (doc.length == 0) {
alert("操作失败,请联系管理员");
} else {
var count = jQuery("#audittopiccount").html();
jQuery("#audittopiccount").html(count - jQuery(":checkbox[name='audittopicid']:checked").length);
_sendRequest(location + '&inajax=1&about=topic', innertopic_callback, false);
}
}
function innertopic_callback(doc) {
var str = doc.slice(doc.indexOf('<table id="table_topic"'), -1);//可用JQUERY替代;
str = str.slice(0, str.indexOf('</table>'));
if (str == "") {
jQuery("#audittopic_form").hide();
jQuery("#forum_topic").after("<div class='hintinfo'>审核完成,没有需要审核的主题!</div>");
jQuery("#tablelist").show();
} else {
$('table_topic').innerHTML = str;
}
}
var optionCheckedPosts = function (option, reason) {
var pidlist = "";
var tableid = $('tablelist').value;
jQuery(":checkbox[name='auditpostid']:checked").each(function (i) {
pidlist = pidlist + this.value + ','
});
pidlist = pidlist.slice(0, pidlist.length - 1);
if (pidlist == "") {
alert("请至少选择一条帖子!");
} else {
switch (option) {
case "pass":
_sendRequest('tools/ajax.aspx?t=passpost&pid=' + pidlist + "&reason=" + reason + "&tableid=" + tableid, optionCheckedPosts_callback, false);
break;
case "delete":
_sendRequest('tools/ajax.aspx?t=deletepost&pid=' + pidlist + "&reason=" + reason + "&tableid=" + tableid, optionCheckedPosts_callback, false);
后面还有 293 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
