alert if not enough GP

This commit is contained in:
Tyler Renelle 2013-08-15 00:28:00 -04:00
parent 0d83ac09fc
commit aa54c073c7

View file

@ -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