diff options
author | Andrew Dolgov <[email protected]> | 2018-12-05 22:19:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-05 22:19:46 +0300 |
commit | 9703162f57a91a570b61f51522db7446fd7175b6 (patch) | |
tree | b3b21ec9b91e664441ac27af0fd80869c852d1fc /plugins/share/share.js | |
parent | cd57fd33ccc2bab88e41e92428926b199fd93978 (diff) |
plugins: note,shared - move to iconfont
Diffstat (limited to 'plugins/share/share.js')
-rw-r--r-- | plugins/share/share.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/share/share.js b/plugins/share/share.js index 7366c2aff..c30dd03e0 100644 --- a/plugins/share/share.js +++ b/plugins/share/share.js @@ -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"); } }; |