diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-19 05:03:17 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-19 05:03:17 -0300 |
commit | 504d3e2f9b9d5311ab63a2ce734e70b6f30950d0 (patch) | |
tree | c2682bee3db645d739df7a6da64d7fb0ad84131b /askbot/media/js/group_messaging.js | |
parent | d91cae28c867557bc660b6a8898229e52c5487d5 (diff) | |
download | askbot-504d3e2f9b9d5311ab63a2ce734e70b6f30950d0.tar.gz askbot-504d3e2f9b9d5311ab63a2ce734e70b6f30950d0.tar.bz2 askbot-504d3e2f9b9d5311ab63a2ce734e70b6f30950d0.zip |
made message reply-able when accessed via direct url
Diffstat (limited to 'askbot/media/js/group_messaging.js')
-rw-r--r-- | askbot/media/js/group_messaging.js | 4 |
1 files changed, 4 insertions, 0 deletions
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); }; |