Преглед на файлове

do not copy communication

version-14
Rushabh Mehta преди 12 години
родител
ревизия
0fefa93edb
променени са 2 файла, в които са добавени 13 реда и са изтрити 10 реда
  1. +8
    -5
      public/js/wn/views/communication.js
  2. +5
    -5
      webnotes/country_info.json

+ 8
- 5
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()
$("<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() {
$(this.parent)
.html("")
.empty()
.css({"margin":"10px 0px"});
this.wrapper = $("<div><h4>"+wn._("Communication History")+"</h4>\


+ 5
- 5
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": "$"


Зареждане…
Отказ
Запис