Compare commits
2 Commits
e42c9f4d8f
...
1.1.0
Author | SHA1 | Date | |
---|---|---|---|
db95b12985 | |||
8648f5a62e |
@ -221,13 +221,7 @@
|
|||||||
},
|
},
|
||||||
messages: () => {
|
messages: () => {
|
||||||
const uri = '/mailbox/{{$mailbox_id}}/messages/valid'
|
const uri = '/mailbox/{{$mailbox_id}}/messages/valid'
|
||||||
return Send.get(uri).then((response, status, jqXHR) => {
|
return Send.get(uri).then(response => {
|
||||||
if (parseInt(jqXHR.status/100) !== 2) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (jqXHR.status === 204) {
|
|
||||||
this.draw().empty()
|
|
||||||
}
|
|
||||||
if (this.total === null) {
|
if (this.total === null) {
|
||||||
$(this.id.count).html(' (' + response.total + ')')
|
$(this.id.count).html(' (' + response.total + ')')
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
|
Reference in New Issue
Block a user