0
Fork 0
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:
cobbspur 2014-03-23 17:24:27 +00:00
parent f4f4dc08e3
commit dbf6da54e8

View file

@ -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") + ".",