diff --git a/Mac/publish/Appcast.xml b/Mac/publish/Appcast.xml index e25264f..25002b3 100755 --- a/Mac/publish/Appcast.xml +++ b/Mac/publish/Appcast.xml @@ -6,15 +6,15 @@ Most recent changes with links to updates. en - Version 0.6.1 + Version 0.6.2 10.5.0 http://jabs.nu/Tentia/download/ReleaseNotes.html - Sun, 27 Jan 2013 10:14:16 +0100 + Sun, 27 Jan 2013 17:55:18 +0100 + sparkle:dsaSignature="MC4CFQCA7q7VG5aSt6yMxiNC3SYQHGtt8QIVAIbPnWFSXu4u0L7XT5Jelm16H77w" /> diff --git a/WebKit/scripts/controller/Timeline.js b/WebKit/scripts/controller/Timeline.js index 94b9e20..58891af 100644 --- a/WebKit/scripts/controller/Timeline.js +++ b/WebKit/scripts/controller/Timeline.js @@ -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) { diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index ee854f1..a1faa26 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -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); }