fixed #139
This commit is contained in:
parent
f416a92a44
commit
aac70a1083
3 changed files with 12 additions and 12 deletions
|
@ -6,15 +6,15 @@
|
||||||
<description>Most recent changes with links to updates.</description>
|
<description>Most recent changes with links to updates.</description>
|
||||||
<language>en</language>
|
<language>en</language>
|
||||||
<item>
|
<item>
|
||||||
<title>Version 0.6.1</title>
|
<title>Version 0.6.2</title>
|
||||||
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>
|
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>
|
||||||
<sparkle:releaseNotesLink>http://jabs.nu/Tentia/download/ReleaseNotes.html</sparkle:releaseNotesLink>
|
<sparkle:releaseNotesLink>http://jabs.nu/Tentia/download/ReleaseNotes.html</sparkle:releaseNotesLink>
|
||||||
<pubDate>Sun, 27 Jan 2013 10:14:16 +0100</pubDate>
|
<pubDate>Sun, 27 Jan 2013 17:55:18 +0100</pubDate>
|
||||||
<enclosure url="http://jabs.nu/Tentia/download/Tentia.app.zip"
|
<enclosure url="http://jabs.nu/Tentia/download/Tentia.app.zip"
|
||||||
sparkle:version="0.6.1"
|
sparkle:version="0.6.2"
|
||||||
length="1092264"
|
length="1093078"
|
||||||
type="application/octet-stream"
|
type="application/octet-stream"
|
||||||
sparkle:dsaSignature="MCwCFBzHnd234i20ZHIVPe8/sNEGhCIoAhRy+lZG3h1LUoPO5+7CQWA139hKHQ==" />
|
sparkle:dsaSignature="MC4CFQCA7q7VG5aSt6yMxiNC3SYQHGtt8QIVAIbPnWFSXu4u0L7XT5Jelm16H77w" />
|
||||||
</item>
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
@ -132,13 +132,13 @@ function(Core, Paths, HostApp, URI) {
|
||||||
Core.prototype.sendNewMessage.call(this, content, in_reply_to_status_id, in_reply_to_entity, location, image_data_uri, is_private, callback);
|
Core.prototype.sendNewMessage.call(this, content, in_reply_to_status_id, in_reply_to_entity, location, image_data_uri, is_private, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
Timeline.prototype.remove = function(id, callback) {
|
Timeline.prototype.remove = function(id, callback, type) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var new_callback = function(data) {
|
var new_callback = function(data) {
|
||||||
if(callback) callback(data);
|
if(callback) callback(data);
|
||||||
_this.getNewData();
|
_this.getNewData();
|
||||||
}
|
}
|
||||||
Core.prototype.remove.call(this, id, new_callback);
|
Core.prototype.remove.call(this, id, new_callback, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
Timeline.prototype.repost = function(id, entity, callback) {
|
Timeline.prototype.repost = function(id, entity, callback) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
||||||
}
|
}
|
||||||
} else if (typeof status.__repost != "undefined" && HostApp.stringForKey("entity") == status.__repost.entity) {
|
} else if (typeof status.__repost != "undefined" && HostApp.stringForKey("entity") == status.__repost.entity) {
|
||||||
template.remove.onclick = function() {
|
template.remove.onclick = function() {
|
||||||
_this.remove(status.__repost.id);
|
_this.remove(status.__repost.id, null, "repost");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -356,7 +356,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
||||||
$(post).find(".repost").show();
|
$(post).find(".repost").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
_this.remove(repost.id, callback);
|
_this.remove(repost.id, callback, "repost");
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -574,9 +574,9 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
||||||
Paths.postMultipart(url.toString(), newCallback, post, boundary);
|
Paths.postMultipart(url.toString(), newCallback, post, boundary);
|
||||||
}
|
}
|
||||||
|
|
||||||
Core.prototype.remove = function(id, callback) {
|
Core.prototype.remove = function(id, callback, type) {
|
||||||
|
type = type || "post";
|
||||||
if (confirm("Really delete this post?")) {
|
if (confirm("Really delete this " + type + "?")) {
|
||||||
var url = URI(Paths.mkApiRootPath("/posts/" + id));
|
var url = URI(Paths.mkApiRootPath("/posts/" + id));
|
||||||
Paths.getURL(url.toString(), "DELETE", callback);
|
Paths.getURL(url.toString(), "DELETE", callback);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue