diff --git a/app/assets/javascripts/darkswarm/controllers/products_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/products_controller.js.coffee index b7bff59def..217118ee82 100644 --- a/app/assets/javascripts/darkswarm/controllers/products_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/products_controller.js.coffee @@ -29,11 +29,17 @@ Darkswarm.controller "ProductsCtrl", ($scope, $filter, $rootScope, Products, Ord data.map( (taxon) -> $scope.supplied_taxons[taxon.id] = Taxons.taxons_by_id[taxon.id] ) + # Some taxons may be displayed in a dropdown. + # Foundation needs initialising again to add dropdown actions. + Foundation.init() OrderCycleResource.properties params, (data)=> $scope.supplied_properties = {} data.map( (property) -> $scope.supplied_properties[property.id] = Properties.properties_by_id[property.id] ) + # Some properties may be displayed in a dropdown. + # Foundation needs initialising again to add dropdown actions. + Foundation.init() $scope.loadMore = -> if ($scope.page * $scope.per_page) <= Products.products.length