blob: 5b496f65151c9ad3438bff6730680f3493f2eb07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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();
}
};
|