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

This commit is contained in:
Brion Vibber 2011-02-28 16:24:51 -08:00
parent 59a0b2a82d
commit f109d15c28
2 changed files with 5 additions and 5 deletions

View File

@ -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

File diff suppressed because one or more lines are too long