Commit c37638d3 by Scott Vivian

Correct anchors on comment edit/save buttons. Fixes #68.

parent feb87f1a
...@@ -220,12 +220,12 @@ ...@@ -220,12 +220,12 @@
if ($comment['editbutton']) { if ($comment['editbutton']) {
if (qa_clicked($prefix.'doedit')) { if (qa_clicked($prefix.'doedit')) {
if (qa_page_q_permit_edit($comment, 'permit_edit_c', $pageerror)) // extra check here ensures error message is visible if (qa_page_q_permit_edit($comment, 'permit_edit_c', $pageerror)) // extra check here ensures error message is visible
qa_page_q_refresh($pagestart, 'edit-'.$commentid, $commentparenttype, $comment['parentid']); qa_page_q_refresh($pagestart, 'edit-'.$commentid, 'C', $commentid);
} elseif (qa_clicked($prefix.'dosave') && qa_page_q_permit_edit($comment, 'permit_edit_c', $pageerror)) { } elseif (qa_clicked($prefix.'dosave') && qa_page_q_permit_edit($comment, 'permit_edit_c', $pageerror)) {
if (qa_page_q_edit_c_submit($comment, $question, $commentparent, $ceditin[$commentid], $cediterrors[$commentid])) if (qa_page_q_edit_c_submit($comment, $question, $commentparent, $ceditin[$commentid], $cediterrors[$commentid]))
qa_page_q_refresh($pagestart, null, $commentparenttype, $comment['parentid']); qa_page_q_refresh($pagestart, null, 'C', $commentid);
else { else {
$formtype='c_edit'; $formtype='c_edit';
......
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