编辑器视频+文件管组件删除错误修复

feat/task1-c-wallet
Devil 2021-09-02 18:13:52 +08:00
parent 7bfd8af215
commit 3a2b048ab3
2 changed files with 2 additions and 2 deletions

View File

@ -796,7 +796,7 @@
if(!confirm("确定要删除吗?")) return;
var url = editor.getOpt("serverUrl");
var join = (url.indexOf('?') == -1) ? '?' : '&';
$.post(url + join+"?action=deletefile", { "id": del.attr("data-id") }, function(response) {
$.post(url + join+"action=deletefile", { "id": del.attr("data-id") }, function(response) {
if (response.code == 0)
{
del.parent().remove();

View File

@ -344,7 +344,7 @@
if(!confirm("确定要删除吗?")) return;
var url = editor.getOpt("serverUrl");
var join = (url.indexOf('?') == -1) ? '?' : '&';
$.post(url + join+"?action=deletefile", { "id": del.attr("data-id") }, function(response) {
$.post(url + join+"action=deletefile", { "id": del.attr("data-id") }, function(response) {
if (response.code == 0)
{
del.parent().remove();