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