From 504d3e2f9b9d5311ab63a2ce734e70b6f30950d0 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Fri, 19 Oct 2012 05:03:17 -0300 Subject: made message reply-able when accessed via direct url --- askbot/media/js/group_messaging.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/askbot/media/js/group_messaging.js b/askbot/media/js/group_messaging.js index c788da94..8c7e4b91 100644 --- a/askbot/media/js/group_messaging.js +++ b/askbot/media/js/group_messaging.js @@ -473,6 +473,7 @@ ThreadContainer.prototype.appendEditor = function() { editor.setSendUrl(this._replyUrl); this._element.append(editor.getElement()); this._editor = editor; + editor.show(); }; ThreadContainer.prototype.createDom = function() { @@ -489,6 +490,9 @@ ThreadContainer.prototype.decorate = function(element) { var thread = new Thread(); thread.decorate(element.find('.thread')); this.appendEditor(); + var postData = {parent_id: thread.getLastMessageId()}; + this._editor.setPostData(postData); + this._editor.setThread(thread); }; -- cgit v1.2.3-1-g7c22