4in1_ws_web/htdocs/js/admin/12-upload-list.js
2023-12-30 23:29:31 +00:00

20 lines
551 B
JavaScript

var BlogUploadList = {
submitNoteEdit: function(action, note) {
if (note === null)
return;
var form = document.createElement('form');
form.setAttribute('method', 'post');
form.setAttribute('action', action);
var input = document.createElement('input');
input.setAttribute('type', 'hidden');
input.setAttribute('name', 'note');
input.setAttribute('value', note);
form.appendChild(input);
document.body.appendChild(form);
form.submit();
}
};