From f427f720def865d9c9e2f414a5374ca83db0c47e Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 2 Sep 2013 18:37:28 +0530 Subject: [PATCH] [communication] [minor] --- public/js/wn/views/communication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/wn/views/communication.js b/public/js/wn/views/communication.js index 96d4c0a555..a0b7b4729f 100644 --- a/public/js/wn/views/communication.js +++ b/public/js/wn/views/communication.js @@ -12,7 +12,7 @@ wn.views.CommunicationList = Class.extend({ return; } - var sortfn = function (a, b) { return (b.communication_date > a.communication_date) ? 1 : -1; } + var sortfn = function (a, b) { return (b.creation > a.creation) ? 1 : -1; } this.list = this.list.sort(sortfn); this.make(); @@ -72,7 +72,7 @@ wn.views.CommunicationList = Class.extend({ prepare: function(doc) { //doc.when = comment_when(this.doc.modified); - doc.when = doc.communication_date; + doc.when = doc.creation; if(!doc.content) doc.content = "[no content]"; if(!wn.utils.is_html(doc.content)) { doc.content = doc.content.replace(/\n/g, "
");