From aa54c073c7483c3a101a81ea62800e5eb4a543f9 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 15 Aug 2013 00:28:00 -0400 Subject: [PATCH] alert if not enough GP --- src/app/items.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/items.coffee b/src/app/items.coffee index 3125879d36..9c118be29b 100644 --- a/src/app/items.coffee +++ b/src/app/items.coffee @@ -22,7 +22,8 @@ module.exports.app = (appExports, model) -> appExports.buyItem = (e, el) -> misc.batchTxn model, (uObj, paths) -> - items.buyItem uObj, $(el).attr('data-type'), {paths} + ret = items.buyItem uObj, $(el).attr('data-type'), {paths} + alert("Not enough GP") if ret is false appExports.activateRewardsTab = -> model.set '_activeTabRewards', true