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