|
@ -213,11 +213,14 @@
|
|
|
$("#content").val(data);
|
|
|
debugger
|
|
|
var form = new FormData($("#article")[0]);
|
|
|
/*var fileLength = $(".jFiler-item-thumb-image img").length;
|
|
|
|
|
|
for(var i =0;i<fileLength,i++){
|
|
|
form.append(file+"",$(".jFiler-item-thumb-image img"));
|
|
|
/*for(var i =0;i<files.length;i++){
|
|
|
form.append("file"+i,$(".jFiler-item-thumb-image img"));
|
|
|
}*/
|
|
|
for(var i=0;i<files.length;i++){
|
|
|
form.append("file",files[i]);
|
|
|
}
|
|
|
|
|
|
$.ajax({
|
|
|
url:"save",
|
|
|
type:"post",
|
|
@ -226,8 +229,9 @@
|
|
|
async: false,
|
|
|
contentType:false,
|
|
|
success:function(data){
|
|
|
alert("保存成功");
|
|
|
window.location.href="toList";
|
|
|
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
|
|
|
parent.layer.close(index);
|
|
|
// window.location.href="toList";
|
|
|
}
|
|
|
});
|
|
|
return false;
|