This commit is contained in:
kuang.yife 2024-08-20 18:10:21 +08:00
parent 05a454112e
commit 9fc1a7c491
1 changed files with 7 additions and 1 deletions

View File

@ -142,10 +142,16 @@
function submitHandler() {
if ($.validate.form()) {
var content = tinymce.get('mytextarea').getContent();
console.log("content===" + content);
console.log("encode content===" + encodeURIComponent(content));
console.log("结尾: " + $('#form-detail-edit').serialize())
console.log($('#form-detail-edit').serialize() + encodeURIComponent(content) + "&detailTag=" + detailTag + "&headStatus=" + headStatus + "&imgStatus=" + imgStatus)
var detailTag = $.form.selectSelects("detailTags");
var headStatus = $("input[id='headStatus']").is(':checked') === true ? 0 : 1;
var imgStatus = $("input[id='imgStatus']").is(':checked') === true ? 0 : 1;
$.operate.save(prefix + "/edit", $('#form-detail-edit').serialize() + encodeURIComponent(content) + "&detailTag=" + detailTag + "&headStatus=" + headStatus + "&imgStatus=" + imgStatus);
var data = $('#form-detail-edit').serialize();
data = data.replace('&content=','');
$.operate.save(prefix + "/edit", data + "&content=" + encodeURIComponent(content) + "&detailTag=" + detailTag + "&headStatus=" + headStatus + "&imgStatus=" + imgStatus);
}
}