Merge pull request #3870 from Alys/dropNotifications

adds drop notifications for eggs, food - partial? fix for https://github.com/HabitRPG/habitrpg/issues/3787
This commit is contained in:
Alice Harris 2014-08-12 07:29:41 +10:00
commit 2ad5d4b00b

View file

@ -70,11 +70,11 @@ habitrpg.controller('NotificationCtrl',
}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}));
Notification.drop(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}));
Notification.drop(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);