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

plugins: note,shared - move to iconfont

This commit is contained in:
Andrew Dolgov
2018-12-05 22:19:46 +03:00
parent cd57fd33cc
commit 9703162f57
11 changed files with 25 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ Plugins.Share = {
new Effect.Highlight(e);
const img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("notshared.png", "share.png");
img.addClassName("shared");
Notify.close();
@@ -54,8 +54,8 @@ Plugins.Share = {
xhrPost("backend.php", query, () => {
notify("Article unshared.");
var img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("share.png", "notshared.png");
const img = $("SHARE-IMG-" + id);
img.removeClassName("shared");
dialog.hide();
});
@@ -68,7 +68,7 @@ Plugins.Share = {
dialog.show();
const img = $("SHARE-IMG-" + id);
if (img) img.src = img.src.replace("notshared.png", "share.png");
img.addClassName("shared");
}
};