Browse Source

do not copy communication

version-14
Rushabh Mehta 12 years ago
parent
commit
0fefa93edb
2 changed files with 13 additions and 10 deletions
  1. +8
    -5
      public/js/wn/views/communication.js
  2. +5
    -5
      webnotes/country_info.json

+ 8
- 5
public/js/wn/views/communication.js View File

@@ -8,6 +8,7 @@ wn.views.CommunicationList = Class.extend({
$.extend(this, opts); $.extend(this, opts);
if(this.doc.__islocal) { if(this.doc.__islocal) {
$(this.parent).empty();
return; return;
} }
@@ -28,15 +29,17 @@ wn.views.CommunicationList = Class.extend({
// show first // show first
this.comm_list[0].find('.comm-content').toggle(true); this.comm_list[0].find('.comm-content').toggle(true);
} else { } else {
this.body.remove()
$("<div class='alert'>" + wn._("No Communication tagged with this ")
+ this.doc.doctype +" yet.</div>").appendTo(this.wrapper);
this.clear_list()
} }
},
clear_list: function() {
this.body.remove();
$("<div class='alert'>" + wn._("No Communication tagged with this ")
+ this.doc.doctype +" yet.</div>").appendTo(this.wrapper);
}, },
make_body: function() { make_body: function() {
$(this.parent) $(this.parent)
.html("")
.empty()
.css({"margin":"10px 0px"}); .css({"margin":"10px 0px"});
this.wrapper = $("<div><h4>"+wn._("Communication History")+"</h4>\ this.wrapper = $("<div><h4>"+wn._("Communication History")+"</h4>\


+ 5
- 5
webnotes/country_info.json View File

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


Loading…
Cancel
Save