This commit is contained in:
jeena 2013-04-09 19:10:57 +02:00
parent cbed4eae9c
commit 56e31b9fd6
5 changed files with 17 additions and 11 deletions

View file

@ -14,21 +14,23 @@ function(HostApp, Core, Paths, URI) {
this.action = "conversation";
this.container = document.createElement("div");
this.container.className = this.action;
this.body = document.createElement("ol");
this.body.className = this.action;
this.container.appendChild(this.body)
document.getElementById("content").appendChild(this.body);
document.getElementById("content").appendChild(this.container);
this.hide();
}
Conversation.prototype = Object.create(Core.prototype);
Conversation.prototype.show = function() {
Core.prototype.show.call(this, this.body);
Core.prototype.show.call(this, this.container);
}
Conversation.prototype.hide = function() {
Core.prototype.hide.call(this, this.body);
Core.prototype.hide.call(this, this.container);
}

View file

@ -17,7 +17,7 @@ function(HostApp, Timeline, URI, Paths, Core) {
Timeline.call(this);
this.action = "mentions";
this.body.className = this.action;
this.container.className = this.action;
this.hide();
}
@ -25,11 +25,11 @@ function(HostApp, Timeline, URI, Paths, Core) {
Mentions.prototype = Object.create(Timeline.prototype);
Mentions.prototype.show = function() {
Core.prototype.show.call(this, this.body);
Core.prototype.show.call(this, this.container);
}
Mentions.prototype.hide = function() {
Core.prototype.hide.call(this, this.body);
Core.prototype.hide.call(this, this.container);
}

View file

@ -15,6 +15,7 @@ function(HostApp, Core, Paths, URI) {
this.action = "profile";
this.container = document.createElement("div");
this.container.className = this.action;
document.getElementById("content").appendChild(this.container);
this.initProfileTemplate();

View file

@ -15,6 +15,7 @@ function(HostApp, Core, Paths, URI) {
this.action = "search";
this.container = document.createElement("div");
this.container.className = this.action;
document.getElementById("content").appendChild(this.container);
this.body = document.createElement("ol");

View file

@ -20,9 +20,11 @@ function(Core, Paths, HostApp, URI) {
this.since_id_entity = null;
this.since_time = 0;
this.container = document.createElement("div");
this.container.className = this.action;
this.body = document.createElement("ol");
this.body.className = this.action;
document.getElementById("content").appendChild(this.body);
this.container.appendChild(this.body)
document.getElementById("content").appendChild(this.container);
var _this = this;
this.reloadIntervall = setInterval(function() { _this.getNewData() }, this.timeout);
@ -33,11 +35,11 @@ function(Core, Paths, HostApp, URI) {
Timeline.prototype = Object.create(Core.prototype);
Timeline.prototype.show = function() {
Core.prototype.show.call(this, this.body);
Core.prototype.show.call(this, this.container);
}
Timeline.prototype.hide = function() {
Core.prototype.hide.call(this, this.body);
Core.prototype.hide.call(this, this.container);
}