From 319ac9796359c7e68604e099d18ec4987e5e51c1 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 27 Nov 2012 13:30:03 +0530 Subject: [PATCH] in communication, on overflowX, provide scroll --- public/js/communication.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/js/communication.js b/public/js/communication.js index 5e7a010144..feef6c9907 100644 --- a/public/js/communication.js +++ b/public/js/communication.js @@ -19,8 +19,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(); }, @@ -41,7 +42,9 @@ erpnext.CommunicationView = Class.extend({ this.wrapper = $("

Communication History

\

") - .appendTo(this.parent); + .appendTo(this.parent).css({ + "overflow-x": "auto", + }); this.body = $("") .appendTo(this.wrapper);