fixed silly bug
This commit is contained in:
parent
de259612a8
commit
74fc2802ef
|
@ -90,6 +90,8 @@ function updateEmailTable()
|
||||||
if(Object.keys(data.emails).length>0)
|
if(Object.keys(data.emails).length>0)
|
||||||
for(em in data.emails)
|
for(em in data.emails)
|
||||||
{
|
{
|
||||||
|
if($("#nomailyet").length != 0)
|
||||||
|
$("#nomailyet").remove();
|
||||||
if(em>lastid) lastid = em;
|
if(em>lastid) lastid = em;
|
||||||
var date = new Date(parseInt(em))
|
var date = new Date(parseInt(em))
|
||||||
var datestring = date.getDate()+"."+date.getMonth()+"."+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes();
|
var datestring = date.getDate()+"."+date.getMonth()+"."+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes();
|
||||||
|
@ -102,11 +104,10 @@ function updateEmailTable()
|
||||||
<td>'+ed.subject.toHtmlEntities()+'</td>\
|
<td>'+ed.subject.toHtmlEntities()+'</td>\
|
||||||
</tr>');
|
</tr>');
|
||||||
}
|
}
|
||||||
else if(lastid==0){
|
else if(lastid==0 && $("#nomailyet").length == 0){
|
||||||
console.log("leider keine post")
|
|
||||||
$("#emailtable").append('\
|
$("#emailtable").append('\
|
||||||
<tr>\
|
<tr id="nomailyet">\
|
||||||
<td colspan="4" class="text-center" ><h4>No emails received on this address (yet..)</h4></td>\
|
<td colspan="4" class="text-center" ><h4>No emails received on this address (yet..)</h4></td>\
|
||||||
</tr>');
|
</tr>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue