...
|
...
|
@@ -143,6 +143,7 @@ $(document).on('click', '#filter', function () { |
|
|
//编辑
|
|
|
$(document).on('click', '.info-modify', function () {
|
|
|
var item = g.rows[$(this).data("index")];
|
|
|
item.modifyFlag = 1;
|
|
|
staticFileOP("编辑", '/staticFileManage/update', item);
|
|
|
});
|
|
|
|
...
|
...
|
@@ -151,7 +152,7 @@ function staticFileOP(prefix, url, item) { |
|
|
var a = new common.edit(".confirm", {
|
|
|
//"bucket" : "author"
|
|
|
});
|
|
|
|
|
|
console.log(item);
|
|
|
var dialog = new common.dialog({
|
|
|
width: '70%',
|
|
|
title: prefix + '静态文件',
|
...
|
...
|
@@ -168,7 +169,8 @@ function staticFileOP(prefix, url, item) { |
|
|
pageTitle: $('#pageTitle').val(),
|
|
|
keyWord: $('#keyWord').val(),
|
|
|
pageDesc: $('#pageDesc').val(),
|
|
|
content: baidu.getContent()
|
|
|
content: baidu.getContent(),
|
|
|
zip:$('#zip').val()
|
|
|
}
|
|
|
}, function (res) {
|
|
|
//res=res.data;
|
...
|
...
|
@@ -206,4 +208,26 @@ function staticFileOP(prefix, url, item) { |
|
|
|
|
|
|
|
|
a.init();
|
|
|
$("#uploadBox").ajaxfileupload({
|
|
|
'action': '/ajax/upload',
|
|
|
'params': {
|
|
|
bucket: "staticFile",
|
|
|
__type: "upload"
|
|
|
},
|
|
|
onComplete: function (response) {
|
|
|
if (response.status && response.code == 200) {
|
|
|
if(response.data){
|
|
|
common.util.__tip(response.message, "success");
|
|
|
$("#zip").val(response.data);
|
|
|
}
|
|
|
} else {
|
|
|
common.util.__tip(response.message);
|
|
|
}
|
|
|
},
|
|
|
valid_extensions: ["zip"]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$(document).on("click", "#chooseFile", function () {
|
|
|
$("#uploadBox").click();
|
|
|
}); |
...
|
...
|
|