mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
clears notifications on clicking featured icon
closes #2479 - adds a cleareverything command to toggleFeatured in blog.js to stop stacking of notifications on multiple clicks of featured icon
This commit is contained in:
parent
f4f4dc08e3
commit
dbf6da54e8
@ -239,6 +239,7 @@
|
||||
}, {
|
||||
success : function () {
|
||||
featuredEl.removeClass("featured unfeatured").addClass(featured ? "featured" : "unfeatured");
|
||||
Ghost.notifications.clearEverything();
|
||||
Ghost.notifications.addItem({
|
||||
type: 'success',
|
||||
message: "Post successfully marked as " + (featured ? "featured" : "not featured") + ".",
|
||||
|
Loading…
Reference in New Issue
Block a user