Commit f109d15c authored by Brion Vibber's avatar Brion Vibber

avoid hardcoding action & session token; pull them from the main posting form for now

parent 59a0b2a8
......@@ -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);
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment