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:
@@ -43,7 +43,7 @@ module.exports = class CraftPageController extends PageController
|
|||||||
onMoveNeedToHave: (itemSlug)->
|
onMoveNeedToHave: (itemSlug)->
|
||||||
quantity = @model.plan.need.quantityOf itemSlug
|
quantity = @model.plan.need.quantityOf itemSlug
|
||||||
@model.plan.have.add itemSlug, quantity
|
@model.plan.have.add itemSlug, quantity
|
||||||
@_saveHaveInventory()
|
@onHaveInventoryChanged()
|
||||||
|
|
||||||
onRemoveFromHaveInventory: (itemSlug)->
|
onRemoveFromHaveInventory: (itemSlug)->
|
||||||
@model.plan.have.remove itemSlug
|
@model.plan.have.remove itemSlug
|
||||||
|
|||||||
@@ -78,8 +78,8 @@ module.exports = class HeaderController extends BaseController
|
|||||||
$navLink.css 'z-index', zIndex--
|
$navLink.css 'z-index', zIndex--
|
||||||
|
|
||||||
if global.env in ProductionEnvs
|
if global.env in ProductionEnvs
|
||||||
addThisUrl = '//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54f3c9717b2e530d'
|
addThisUrl = 'http://s7.addthis.com/js/300/addthis_widget.js?pubid=ra-54f3c9717b2e530d'
|
||||||
$('body').append "<script async src=\"#{addThisUrl}\"></script>"
|
$('body').append "<script async=\"async\" src=\"#{addThisUrl}\"></script>"
|
||||||
|
|
||||||
@_itemSelector = @addChild ItemSelectorController, '.view__item_selector.search',
|
@_itemSelector = @addChild ItemSelectorController, '.view__item_selector.search',
|
||||||
modPack: @modPack
|
modPack: @modPack
|
||||||
|
|||||||
Reference in New Issue
Block a user