mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-10 03:14:45 +08:00
调整删除时http提交方式
This commit is contained in:
@@ -27,6 +27,7 @@ function MainGrid() {
|
||||
var selectedNode = 'me';
|
||||
this.maingrid = $('#maingrid').datagrid({
|
||||
showToolbar: false,
|
||||
loadType:'GET',
|
||||
filterThead: false,
|
||||
target: $(this),
|
||||
columns: [
|
||||
@@ -115,14 +116,14 @@ function del() {
|
||||
var selected = list.getSelectedObj();
|
||||
if (selected == null) return;
|
||||
|
||||
$.getJSON('/CommonApplies/Delete?Id=' + selected.Id, function (data) {
|
||||
$.post('/CommonApplies/Delete?Id=' + selected.Id, function (data) {
|
||||
if (data.statusCode == "200") {
|
||||
list.reload();
|
||||
}
|
||||
else {
|
||||
$(this).alertmsg('warn', data.message);
|
||||
}
|
||||
});
|
||||
}, "json");
|
||||
}
|
||||
|
||||
//自定义的编辑按钮
|
||||
|
||||
Reference in New Issue
Block a user