编辑器视频+文件管组件删除错误修复
parent
7bfd8af215
commit
3a2b048ab3
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue