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>
|
||||
<language>en</language>
|
||||
<item>
|
||||
<title>Version 0.6.1</title>
|
||||
<title>Version 0.6.2</title>
|
||||
<sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>
|
||||
<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"
|
||||
sparkle:version="0.6.1"
|
||||
length="1092264"
|
||||
sparkle:version="0.6.2"
|
||||
length="1093078"
|
||||
type="application/octet-stream"
|
||||
sparkle:dsaSignature="MCwCFBzHnd234i20ZHIVPe8/sNEGhCIoAhRy+lZG3h1LUoPO5+7CQWA139hKHQ==" />
|
||||
sparkle:dsaSignature="MC4CFQCA7q7VG5aSt6yMxiNC3SYQHGtt8QIVAIbPnWFSXu4u0L7XT5Jelm16H77w" />
|
||||
</item>
|
||||
</channel>
|
||||
</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);
|
||||
}
|
||||
|
||||
Timeline.prototype.remove = function(id, callback) {
|
||||
Timeline.prototype.remove = function(id, callback, type) {
|
||||
var _this = this;
|
||||
var new_callback = function(data) {
|
||||
if(callback) callback(data);
|
||||
_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) {
|
||||
|
|
|
@ -160,7 +160,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
}
|
||||
} else if (typeof status.__repost != "undefined" && HostApp.stringForKey("entity") == status.__repost.entity) {
|
||||
template.remove.onclick = function() {
|
||||
_this.remove(status.__repost.id);
|
||||
_this.remove(status.__repost.id, null, "repost");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
@ -356,7 +356,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
$(post).find(".repost").show();
|
||||
}
|
||||
|
||||
_this.remove(repost.id, callback);
|
||||
_this.remove(repost.id, callback, "repost");
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
@ -574,9 +574,9 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
Paths.postMultipart(url.toString(), newCallback, post, boundary);
|
||||
}
|
||||
|
||||
Core.prototype.remove = function(id, callback) {
|
||||
|
||||
if (confirm("Really delete this post?")) {
|
||||
Core.prototype.remove = function(id, callback, type) {
|
||||
type = type || "post";
|
||||
if (confirm("Really delete this " + type + "?")) {
|
||||
var url = URI(Paths.mkApiRootPath("/posts/" + id));
|
||||
Paths.getURL(url.toString(), "DELETE", callback);
|
||||
}
|
||||
|
|
Reference in a new issue