summaryrefslogtreecommitdiff
path: root/plugins/share/share.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/share/share.js')
-rw-r--r--plugins/share/share.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/share/share.js b/plugins/share/share.js
index bbfb553d5..09c973ed8 100644
--- a/plugins/share/share.js
+++ b/plugins/share/share.js
@@ -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);
}