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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user