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