]> git.openstreetmap.org Git - osqa.git/commitdiff
retrieve the value of the canned comment using jQuery (not plain JS)
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 6 Jul 2011 22:41:24 +0000 (22:41 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 6 Jul 2011 22:41:24 +0000 (22:41 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1105 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/node/canned_comments.html

index 87296fc34ad523a337b60c658a59a68c857ba051..356f83f635ae4e1286ad1c40152a544b90e53af4 100644 (file)
@@ -16,7 +16,7 @@
 <table class="canned_comments" cellpadding="0" cellspacing="0">
     {% for comment in canned_comments %}
     <tr>
-        <td><input type="radio" name="comment_radio" onchange="document.getElementById('hidden_comment_wrapper').value=this.value" id="canned_comment_{{ forloop.counter }}" value="{{ comment }}" /></td>
+        <td><input type="radio" name="comment_radio" onchange="jQuery('#hidden_comment_wrapper').val(jQuery(this).val())" id="canned_comment_{{ forloop.counter }}" value="{{ comment }}" /></td>
         <td>
             <label for="canned_comment_{{ forloop.counter }}">{{ comment }}</label>
         </td>