Procházet zdrojové kódy

[fix] [minor] don't show portal link in communication thread

version-14
Anand Doshi před 11 roky
rodič
revize
756c28a2e7
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      public/js/wn/views/communication.js

+ 2
- 1
public/js/wn/views/communication.js Zobrazit soubor

@@ -83,6 +83,7 @@ wn.views.CommunicationList = Class.extend({
doc._sender = doc.sender.replace(/</, "&lt;").replace(/>/, "&gt;");
doc.content = doc.content.split("-----"+wn._("In response to")+"-----")[0];
doc.content = doc.content.split("-----"+wn._("Original Message")+"-----")[0];
doc.content = doc.content.split("<!-- Portal Link -->")[0];
},
make_line: function(doc) {
@@ -331,7 +332,7 @@ wn.views.CommunicationComposer = Class.extend({
page: portal_args["page"],
name: encodeURIComponent(this.doc.name)
});
portal_link = '--<br><a href="'+portal_link+'" target="_blank">View this on our website</a>';
portal_link = '<!-- Portal Link -->--<br><a href="'+portal_link+'" target="_blank">View this on our website</a>';
}
}
return portal_link;


Načítá se…
Zrušit
Uložit