refactored communication and added to Lead / Contact

This commit is contained in:
Rushabh Mehta
2012-11-27 18:43:19 +05:30
14 changed files with 29 additions and 9 deletions

View File

@@ -20,8 +20,9 @@ erpnext.CommunicationView = Class.extend({
this.comm_list = [];
$.extend(this, opts);
this.list.sort(function(a, b) { return new Date(a.modified) > new Date(b.modified)
? -1 : 1 })
this.list.sort(function(a, b) { return
(new Date(a.modified) > new Date(b.modified))
? -1 : 1; })
this.make();
},