Areatrigger/Names

* fix unnamed areatrigger after fetching them from DB and not clientside
Mail/Names
 * fix unnamed mails after fetching them from DB and not clientside
This commit is contained in:
Sarjuuk
2020-02-24 01:46:50 +01:00
parent 3ff855afe8
commit aa66a7644b
12 changed files with 23 additions and 21 deletions

View File

@@ -27,10 +27,6 @@ Listview.templates.areatrigger = {
var a = $WH.ce('a');
a.style.fontFamily = 'Verdana, sans-serif';
a.href = this.getItemLink(areatrigger);
if (!areatrigger.name){
areatrigger.name = 'Unnamed Areatrigger'
a.className = 'q0';
}
$WH.ae(a, $WH.ct(areatrigger.name));
$WH.ae(wrapper, a);

View File

@@ -27,10 +27,6 @@ Listview.templates.mail = {
var a = $WH.ce('a');
a.style.fontFamily = 'Verdana, sans-serif';
a.href = this.getItemLink(mail);
if (!mail.subject){
mail.subject = 'Untitled Mail'
a.className = 'q0';
}
$WH.ae(a, $WH.ct(mail.subject));
$WH.ae(wrapper, a);