diff --git a/app/assets/javascripts/darkswarm/controllers/group_enterprise_node_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/group_enterprise_node_controller.js.coffee deleted file mode 100644 index 376320e458..0000000000 --- a/app/assets/javascripts/darkswarm/controllers/group_enterprise_node_controller.js.coffee +++ /dev/null @@ -1,12 +0,0 @@ -Darkswarm.controller "GroupEnterpriseNodeCtrl", ($scope, CurrentHub) -> - - $scope.active = false - - $scope.toggle = -> - $scope.active = !$scope.active - - $scope.open = -> - $scope.active - - $scope.current = -> - $scope.hub.id is CurrentHub.hub.id diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 2808d7544e..726aaff811 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -63,7 +63,7 @@ .active_table %producer.active_table_node.row.animate-repeat{id: "{{producer.path}}", "ng-repeat" => "producer in filteredEnterprises = (group_producers | searchEnterprises:query | taxons:activeTaxons | properties:activeProperties:'supplied_properties')", - "ng-controller" => "GroupEnterpriseNodeCtrl", + "ng-controller" => "ProducerNodeCtrl", "ng-class" => "{'closed' : !open(), 'open' : open(), 'inactive' : !producer.active}", id: "{{producer.hash}}"} @@ -91,7 +91,7 @@ %hub.active_table_node.row.animate-repeat{id: "{{hub.hash}}", "ng-repeat" => "hub in filteredEnterprises = (group_hubs | searchEnterprises:query | taxons:activeTaxons | shipping:shippingTypes | properties:activeProperties:'distributed_properties' | orderBy:['-active', '+orders_close_at'])", "ng-class" => "{'is_profile' : hub.category == 'hub_profile', 'closed' : !open(), 'open' : open(), 'inactive' : !hub.active, 'current' : current()}", - "ng-controller" => "GroupEnterpriseNodeCtrl"} + "ng-controller" => "HubNodeCtrl"} .small-12.columns = render 'shops/skinny' = render 'shops/fat'