利用 猴油 快速删除 xBlog 的 文章

(function () {
'use strict';

setTimeout(function () {

// 选择删除
$("#ArticleList_ddlStatus").val(4);

// 删除
if ($("#CheckboxAll").val() == 0) {
SelectAll();
}

// 屏蔽确认框
window.ApplyStatus = function () {
var StatusSelected = $("#ArticleList_ddlStatus").find("option:selected").val();
if (StatusSelected >= 0) {
var checkok = false;
$("#ArticleList_gvArticleList input[type='checkbox'][type-item='true']").each(function (i, n) {
if ($(this).prop('checked')) {
checkok = true;
}
});

if (checkok) {
return true;
}
alert('Please operate with one line of record selected at least.');

} else {
alert('Please choose the operation you need.');
}
return false;
}

// 模拟点击
$("#ArticleList_btnApply").click();

}, 2000)
// Your code here...
})();

0 个评论

要回复文章请先登录注册