mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05: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
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@
|
||||||
}, {
|
}, {
|
||||||
success : function () {
|
success : function () {
|
||||||
featuredEl.removeClass("featured unfeatured").addClass(featured ? "featured" : "unfeatured");
|
featuredEl.removeClass("featured unfeatured").addClass(featured ? "featured" : "unfeatured");
|
||||||
|
Ghost.notifications.clearEverything();
|
||||||
Ghost.notifications.addItem({
|
Ghost.notifications.addItem({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: "Post successfully marked as " + (featured ? "featured" : "not featured") + ".",
|
message: "Post successfully marked as " + (featured ? "featured" : "not featured") + ".",
|
||||||
|
|
Loading…
Add table
Reference in a new issue