equal
deleted
inserted
replaced
164 |
164 |
165 html += '<div id="comment_holder_' + i + '"><input type="hidden" value="'+data.comments[i].comment_id+'" /><input type="hidden" id="comment_source_'+i+'" />' + parser.run() + '</div>'; |
165 html += '<div id="comment_holder_' + i + '"><input type="hidden" value="'+data.comments[i].comment_id+'" /><input type="hidden" id="comment_source_'+i+'" />' + parser.run() + '</div>'; |
166 } |
166 } |
167 } |
167 } |
168 |
168 |
169 // Posting form |
169 if ( data.auth_post_comments ) |
|
170 { |
|
171 |
|
172 // Posting form |
170 |
173 |
171 html += '<h3>Got something to say?</h3>'; |
174 html += '<h3>Got something to say?</h3>'; |
172 html += '<p>If you have comments or suggestions on this article, you can shout it out here.'; |
175 html += '<p>If you have comments or suggestions on this article, you can shout it out here.'; |
173 if ( data.approval_needed ) |
176 if ( data.approval_needed ) |
174 html+=' Before your post will be visible to the public, a moderator will have to approve it.'; |
177 html+=' Before your post will be visible to the public, a moderator will have to approve it.'; |
190 html += ' </td></tr>'; |
193 html += ' </td></tr>'; |
191 } |
194 } |
192 html += ' <tr><td colspan="2" style="text-align: center;"><input type="button" onclick="submitComment();" value="Submit comment" /></td></tr>'; |
195 html += ' <tr><td colspan="2" style="text-align: center;"><input type="button" onclick="submitComment();" value="Submit comment" /></td></tr>'; |
193 html += ' </table>'; |
196 html += ' </table>'; |
194 html += '</div>'; |
197 html += '</div>'; |
|
198 |
|
199 } |
195 |
200 |
196 document.getElementById('ajaxEditContainer').innerHTML = html; |
201 document.getElementById('ajaxEditContainer').innerHTML = html; |
197 |
202 |
198 for ( i = 0; i < data.comments.length; i++ ) |
203 for ( i = 0; i < data.comments.length; i++ ) |
199 { |
204 { |