(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...
})();