mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-01 19:39:45 +08:00
附件管理删除bug修复
This commit is contained in:
parent
a5c22c8aa0
commit
79f600e693
@ -734,10 +734,9 @@
|
||||
window.event.stopPropagation(); //阻止事件的传播
|
||||
} finally {
|
||||
if(!confirm("确定要删除吗?")) return;
|
||||
$.post(editor.getOpt("serverUrl") + "?action=deletefile", { "id": del.attr("data-id") }, function(responseText) {
|
||||
json = utils.str2json(responseText);
|
||||
if (json.state == 'SUCCESS') del.parent().remove();
|
||||
else alert(json.state);
|
||||
$.post(editor.getOpt("serverUrl") + "?action=deletefile", { "id": del.attr("data-id") }, function(response) {
|
||||
if (response.state == 'SUCCESS') del.parent().remove();
|
||||
else alert(response.state);
|
||||
});
|
||||
}
|
||||
})[0]);
|
||||
|
@ -909,10 +909,9 @@
|
||||
window.event.stopPropagation(); //阻止事件的传播
|
||||
} finally {
|
||||
if(!confirm("确定要删除吗?")) return;
|
||||
$.post(editor.getOpt("serverUrl") + "?action=deletefile", { "id": del.attr("data-id") }, function(responseText) {
|
||||
json = utils.str2json(responseText);
|
||||
if (json.state == 'SUCCESS') del.parent().remove();
|
||||
else alert(json.state);
|
||||
$.post(editor.getOpt("serverUrl") + "?action=deletefile", { "id": del.attr("data-id") }, function(response) {
|
||||
if (response.state == 'SUCCESS') del.parent().remove();
|
||||
else alert(response.state);
|
||||
});
|
||||
}
|
||||
})[0]);
|
||||
|
@ -286,10 +286,9 @@
|
||||
window.event.stopPropagation(); //阻止事件的传播
|
||||
} finally {
|
||||
if(!confirm("确定要删除吗?")) return;
|
||||
$.post(editor.getOpt("serverUrl") + "?action=deletefile", { "id": del.attr("data-id") }, function(responseText) {
|
||||
json = utils.str2json(responseText);
|
||||
if (json.state == 'SUCCESS') del.parent().remove();
|
||||
else alert(json.state);
|
||||
$.post(editor.getOpt("serverUrl") + "?action=deletefile", { "id": del.attr("data-id") }, function(response) {
|
||||
if (response.state == 'SUCCESS') del.parent().remove();
|
||||
else alert(response.state);
|
||||
});
|
||||
}
|
||||
})[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user