summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-01 08:20:09 +0300
committerAndrew Dolgov <[email protected]>2018-12-01 08:20:09 +0300
commita2ef54cd927a7c1d92efc14f7178bde53c8e56cb (patch)
tree9e77c9a369e6409f0e4f7558ecc6eb5dbbddcbc3 /plugins
parent3325979bf0193b4cd1393394ecfb3b3eebed1595 (diff)
toggleMark, togglePub: refactor implementation
shorten marked/published img CSS classes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mark_button/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mark_button/init.php b/plugins/mark_button/init.php
index 3910305cd..2b8fa9242 100644
--- a/plugins/mark_button/init.php
+++ b/plugins/mark_button/init.php
@@ -22,12 +22,12 @@ class Mark_Button extends Plugin {
if (sql_bool_to_bool($line["marked"])) {
$marked_pic = "<img
src=\"images/mark_set.png\"
- class=\"markedPic\" alt=\"Unstar article\"
+ class=\"marked-pic marked-$id\" alt=\"Unstar article\"
onclick='toggleMark($id)'>";
} else {
$marked_pic = "<img
src=\"images/mark_unset.png\"
- class=\"markedPic\" alt=\"Star article\"
+ class=\"marked-pic marked-$id\" alt=\"Star article\"
onclick='toggleMark($id)'>";
}
}