/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This Source Code Form is "Incompatible With Secondary Licenses", as * defined by the Mozilla Public License, v. 2.0. */ /* Adds the reply text to the 'comment' textarea */ function replyToComment(id, real_id, replyto_header, text) { var replytext = ""; if (replyCommentConfig.quote_replies == 'quoted_reply') { /* pre id="comment_name_N" */ if (text == null) { var text_elem = document.getElementById('comment_text_'+id); text = getText(text_elem); } replytext = replyto_header + "\n" + wrapReplyText(text); } else if (replyCommentConfig.quote_replies == 'simple_reply') { replytext = replyto_header + "\n"; } if (replyCommentConfig.is_insider) { if (document.getElementById('isprivate_' + real_id).checked) { document.getElementById('newcommentprivacy').checked = 'checked'; updateCommentTagControl(document.getElementById('newcommentprivacy'), 'comment'); } } /*