mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
alert if not enough GP
This commit is contained in:
parent
0d83ac09fc
commit
aa54c073c7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue