From 0fefa93edb40e30fa38f73df59db34d050fdb4ee Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 22 Jan 2013 11:27:38 +0530 Subject: [PATCH] do not copy communication --- public/js/wn/views/communication.js | 13 ++++++++----- webnotes/country_info.json | 10 +++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/public/js/wn/views/communication.js b/public/js/wn/views/communication.js index 2dfa40cc45..e11dc9fd3c 100644 --- a/public/js/wn/views/communication.js +++ b/public/js/wn/views/communication.js @@ -8,6 +8,7 @@ wn.views.CommunicationList = Class.extend({ $.extend(this, opts); if(this.doc.__islocal) { + $(this.parent).empty(); return; } @@ -28,15 +29,17 @@ wn.views.CommunicationList = Class.extend({ // show first this.comm_list[0].find('.comm-content').toggle(true); } else { - this.body.remove() - $("
" + wn._("No Communication tagged with this ") - + this.doc.doctype +" yet.
").appendTo(this.wrapper); + this.clear_list() } - + }, + clear_list: function() { + this.body.remove(); + $("
" + wn._("No Communication tagged with this ") + + this.doc.doctype +" yet.
").appendTo(this.wrapper); }, make_body: function() { $(this.parent) - .html("") + .empty() .css({"margin":"10px 0px"}); this.wrapper = $("

"+wn._("Communication History")+"

\ diff --git a/webnotes/country_info.json b/webnotes/country_info.json index e41cdb77ba..7d1ec544bc 100644 --- a/webnotes/country_info.json +++ b/webnotes/country_info.json @@ -436,7 +436,7 @@ "number_format": "######" }, "British Indian Ocean Territory": { - "currency_fraction": "Cent[D]", + "currency_fraction": "Cent", "currency_fraction_units": 100, "number_format": "#,###.##", "currency_symbol": "$" @@ -975,7 +975,7 @@ }, "United States": { "date_format": "mm-dd-yyyy", - "currency_fraction": "Cent[D]", + "currency_fraction": "Cent", "timezones": [ "America/New_York", "America/Detroit", @@ -1288,7 +1288,7 @@ "America/Guayaquil", "Pacific/Galapagos" ], - "currency_fraction": "Cent[D]", + "currency_fraction": "Cent", "currency_fraction_units": 100, "number_format": "#,###.##", "currency_symbol": "$" @@ -1375,7 +1375,7 @@ "Pacific/Majuro", "Pacific/Kwajalein" ], - "currency_fraction": "Cent[D]", + "currency_fraction": "Cent", "currency_fraction_units": 100, "number_format": "#,###.##", "currency_symbol": "$" @@ -1732,7 +1732,7 @@ "number_format": "####" }, "Turks and Caicos Islands": { - "currency_fraction": "Cent[D]", + "currency_fraction": "Cent", "currency_fraction_units": 100, "number_format": "#,###.##", "currency_symbol": "$"