added opening conversation view in new window to OS X
This commit is contained in:
parent
11e6da5592
commit
142b4d4dd3
13 changed files with 481 additions and 37 deletions
|
@ -50,6 +50,11 @@ function(HostApp, Core, Paths, URI) {
|
|||
this.append(id, entity);
|
||||
}
|
||||
|
||||
// Hack for OS X
|
||||
Conversation.prototype.showStatusFromController = function() {
|
||||
this.showStatus(conversationViewController.postId, conversationViewController.entity);
|
||||
}
|
||||
|
||||
Conversation.prototype.append = function(id, entity, node, add_after) {
|
||||
|
||||
var _this = this;
|
||||
|
|
|
@ -14,6 +14,8 @@ function(HostApp, Core, Paths, URI) {
|
|||
|
||||
this.action = "profile";
|
||||
|
||||
this.posts_limit = 25;
|
||||
|
||||
this.container = document.createElement("div");
|
||||
this.container.className = this.action;
|
||||
document.getElementById("content").appendChild(this.container);
|
||||
|
@ -390,7 +392,7 @@ function(HostApp, Core, Paths, URI) {
|
|||
add_search = add_search || {};
|
||||
|
||||
var url = URI(root_url + "/posts");
|
||||
url.addSearch("limit", 20);
|
||||
url.addSearch("limit", this.posts_limit);
|
||||
|
||||
var post_types = [
|
||||
"https://tent.io/types/post/repost/v0.1.0",
|
||||
|
|
|
@ -14,7 +14,8 @@ function(Core, Paths, HostApp, URI) {
|
|||
this.action = "timeline";
|
||||
this.reload_blocked = false;
|
||||
|
||||
this.max_length = 25;
|
||||
this.posts_limit = 25;
|
||||
this.max_length = 200;
|
||||
this.timeout = 10 * 1000; // every 10 seconds
|
||||
this.since_id = null;
|
||||
this.since_id_entity = null;
|
||||
|
@ -109,7 +110,7 @@ function(Core, Paths, HostApp, URI) {
|
|||
];
|
||||
url.addSearch("post_types", post_types.join(","));
|
||||
//url.addSearch("sort_by", "published_at");
|
||||
url.addSearch("limit", this.max_length);
|
||||
url.addSearch("limit", this.posts_limit);
|
||||
|
||||
if(this.since_id && !append) {
|
||||
url.addSearch("since_id", this.since_id);
|
||||
|
|
Reference in a new issue