Fix several small bugs

* Fix AddThis component not showing up by altering the URL they
  provide to use GET parameters instead of the hash component
* Fix a bug with saving the "have" items on the crafting page
This commit is contained in:
Andrew Miner
2015-04-20 22:02:01 -07:00
parent 9267cb2fa7
commit 37c9fe7502
2 changed files with 3 additions and 3 deletions
@@ -43,7 +43,7 @@ module.exports = class CraftPageController extends PageController
onMoveNeedToHave: (itemSlug)->
quantity = @model.plan.need.quantityOf itemSlug
@model.plan.have.add itemSlug, quantity
@_saveHaveInventory()
@onHaveInventoryChanged()
onRemoveFromHaveInventory: (itemSlug)->
@model.plan.have.remove itemSlug
@@ -78,8 +78,8 @@ module.exports = class HeaderController extends BaseController
$navLink.css 'z-index', zIndex--
if global.env in ProductionEnvs
addThisUrl = '//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54f3c9717b2e530d'
$('body').append "<script async src=\"#{addThisUrl}\"></script>"
addThisUrl = 'http://s7.addthis.com/js/300/addthis_widget.js?pubid=ra-54f3c9717b2e530d'
$('body').append "<script async=\"async\" src=\"#{addThisUrl}\"></script>"
@_itemSelector = @addChild ItemSelectorController, '.view__item_selector.search',
modPack: @modPack