more test ajax comments

This commit is contained in:
Friendika 2011-02-12 03:42:57 -08:00
parent 3d9845f4a4
commit ee46a028d6
2 changed files with 15 additions and 2 deletions

View file

@ -210,3 +210,16 @@
$('#panel').hide();
}
function post_comment(id) {
var typename = 'f-type-' + id;
var puidname = 'f-profile-uid-' + id;
var parname = 'f-parent-' + id;
var textname = 'comment-edit-text-' + id;
var type = $('input[id=typename]').val();
var profile_uid = $('input[id=puidname]').val();
var parent = $('input[id=parname]').val();
var body = $('textarea[id=textname]').val();
alert(body);
}