From 176b39a1a017f275aebc9e9b7f8da5289a295a5d Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sun, 3 Aug 2014 12:55:17 +0200 Subject: [PATCH] fix(typo) --- public/js/controllers/notificationCtrl.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/public/js/controllers/notificationCtrl.js b/public/js/controllers/notificationCtrl.js index c0c6968d58..198a37ba83 100644 --- a/public/js/controllers/notificationCtrl.js +++ b/public/js/controllers/notificationCtrl.js @@ -63,18 +63,18 @@ habitrpg.controller('NotificationCtrl', User.user.items[type][after.key]++; } - if(drop.type === 'HatchingPotion'){ - var text = Content.hatchingPotions[drop.key].text(); - var notes = Content.hatchingPotions[drop.key].notes(); + if(after.type === 'HatchingPotion'){ + var text = Content.hatchingPotions[after.key].text(); + var notes = Content.hatchingPotions[after.key].notes(); Notification.drop(env.t('messageDropPotion', {dropText: text, dropNotes: notes})); - }else if(drop.type === 'Egg'){ - var text = Content.eggs[drop.key].text(); - var notes = Content.eggs[drop.key].notes(); - Notification.drop(env.t('messageDropEgg', {dropText: text, dropNotes: notes})); - }else if(drop.type === 'Food'){ - var text = Content.food[drop.key].text(); - var notes = Content.food[drop.key].notes(); - Notification.drop(env.t('messageDropFood', {dropArticle: drop.article, dropText: text, dropNotes: notes})); + }else if(after.type === 'Egg'){ + var text = Content.eggs[after.key].text(); + var notes = Content.eggs[after.key].notes(); + Notification.after(env.t('messageDropEgg', {dropText: text, dropNotes: notes})); + }else if(after.type === 'Food'){ + var text = Content.food[after.key].text(); + var notes = Content.food[after.key].notes(); + Notification.after(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes})); }else{ // Keep support for another type of drops that might be added Notification.drop(User.user._tmp.drop.dialog);