Browse Source

[communication] [minor]

version-14
Rushabh Mehta 12 years ago
parent
commit
f427f720de
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      public/js/wn/views/communication.js

+ 2
- 2
public/js/wn/views/communication.js View File

@@ -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, "<br>");


Loading…
Cancel
Save