avoid hardcoding action & session token; pull them from the main posting form for now
This commit is contained in:
parent
59a0b2a82d
commit
f109d15c28
@ -607,12 +607,12 @@ var SN = { // StatusNet
|
||||
'</div>' +
|
||||
'</form>' +
|
||||
'</li>');
|
||||
|
||||
var baseForm = $('#form_notice');
|
||||
replyForm = replyItem.find('form');
|
||||
replyForm.attr('src', '/mublog/newnotice'); // @fixme
|
||||
replyForm.attr('action', baseForm.attr('action'));
|
||||
replyForm.find('input[name="token"]').val(baseForm.find('input[name=token]').val());
|
||||
replyForm.find('input[type="submit"]').val(SN.msg('reply_submit'));
|
||||
if (initialText) {
|
||||
replyForm.find('textarea').val(initialText + ' ');
|
||||
}
|
||||
list.append(replyItem);
|
||||
}
|
||||
}
|
||||
|
2
js/util.min.js
vendored
2
js/util.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user