fixed problem with reply button
This commit is contained in:
parent
d99ff86520
commit
8e4d54f68b
5 changed files with 30 additions and 9 deletions
|
@ -9,10 +9,12 @@ function(HostApp, Timeline) {
|
|||
function Mentions() {
|
||||
|
||||
this.is_not_init = false;
|
||||
this.action = "mentions";
|
||||
this.unread_mentions = 0;
|
||||
|
||||
Timeline.call(this);
|
||||
|
||||
this.action = "mentions";
|
||||
this.body.className = this.action;
|
||||
}
|
||||
|
||||
Mentions.prototype = Object.create(Timeline.prototype);
|
||||
|
@ -21,16 +23,16 @@ function(HostApp, Timeline) {
|
|||
|
||||
Timeline.prototype.newStatus.call(this, status);
|
||||
|
||||
if(this.action == "mentions" && this.is_not_init) {
|
||||
if(this.is_not_init) {
|
||||
this.unread_mentions += status.length;
|
||||
HostApp.unreadMentions(this.unread_mentions);
|
||||
}
|
||||
|
||||
this.is_not_init = true;
|
||||
|
||||
}
|
||||
|
||||
Mentions.prototype.getNewData = function(add_to_search) {
|
||||
|
||||
add_to_search = add_to_search || {};
|
||||
|
||||
if (!add_to_search["mentioned_entity"]) {
|
||||
|
|
Reference in a new issue