1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00

share: indicate whether article is shared or not using the icon

This commit is contained in:
Andrew Dolgov
2013-07-11 16:20:24 +04:00
parent ab25a80644
commit abb04b76a5
4 changed files with 15 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ function shareArticle(id) {
new Effect.Highlight(e);
var img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("notshared.png", "share.png");
notify('');
} else {
@@ -61,6 +64,10 @@ function shareArticle(id) {
parameters: query,
onComplete: function(transport) {
notify("Article unshared.");
var img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("share.png", "notshared.png");
dialog.hide();
} });
}
@@ -70,6 +77,9 @@ function shareArticle(id) {
dialog.show();
var img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("notshared.png", "share.png");
} catch (e) {
exception_error("shareArticle", e);
}