Update URL param handling for new site

This commit is contained in:
Andrew Miner
2015-01-10 09:40:50 -08:00
parent f01d367024
commit fa29b77746
5 changed files with 30 additions and 22 deletions
@@ -22,17 +22,6 @@ module.exports = class ItemPageController extends BaseController
options.templateName = 'item_page'
super options
# Public Methods ###############################################################################
setParams: (params)->
return unless params.name?
item = @model.modPack.findItemByName params.name
return unless item? and item.isCraftable
quantity = if params.quantity? then parseInt(params.quantity) else 1
@model.want.add item.slug, quantity
# BaseController Overrides #####################################################################
onDidRender: ->