]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/lib/qnashowquestionform.php
More work trying to understand util.js and get my ajax working right
[quix0rs-gnu-social.git] / plugins / QnA / lib / qnashowquestionform.php
index 27abd42757fc3404f7c398a4f6c4226ccbeca61c..9ef7a9e4c9b7a81d8336b24bd537b5cb675eb7b4 100644 (file)
@@ -119,6 +119,15 @@ class QnashowquestionForm extends Form
             'id'
         );
 
+        $this->out->hidden(
+            'answer-action',
+            common_local_url(
+                'qnanewanswer',
+                null,
+                array('id' => 'question-' . $this->question->id)
+            )
+        );
+
         $this->out->raw($this->question->asHTML());
     }
 
@@ -156,6 +165,6 @@ class QnashowquestionForm extends Form
      */
     function formClass()
     {
-        return 'form_close ajax';
+        return 'form_question_show ajax';
     }
 }