diff --git a/app/assets/javascripts/darkswarm/controllers/pageset_ctrl.js.coffee b/app/assets/javascripts/darkswarm/controllers/page_selection_ctrl.js.coffee similarity index 69% rename from app/assets/javascripts/darkswarm/controllers/pageset_ctrl.js.coffee rename to app/assets/javascripts/darkswarm/controllers/page_selection_ctrl.js.coffee index 9a7cd3af6b..9d2d097fee 100644 --- a/app/assets/javascripts/darkswarm/controllers/pageset_ctrl.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/page_selection_ctrl.js.coffee @@ -1,4 +1,4 @@ -Darkswarm.controller "PagesetCtrl", ($scope, $location) -> +Darkswarm.controller "PageSelectionCtrl", ($scope, $location) -> $scope.selected = -> $location.path()[1..] || $scope.defaultPage diff --git a/app/views/shopping_shared/_tabs.html.haml b/app/views/shopping_shared/_tabs.html.haml index 4f6a2192ea..6f2119b4c7 100644 --- a/app/views/shopping_shared/_tabs.html.haml +++ b/app/views/shopping_shared/_tabs.html.haml @@ -3,7 +3,7 @@ - shop_tabs.each do |tab| = render "shopping_shared/tabs/#{tab[:name]}" - #shop-tabs{ ng: { controller: "PagesetCtrl", init: "selectDefault('#{shop_tabs.first[:name]}')", cloak: true } } + #shop-tabs{ ng: { controller: "PageSelectionCtrl", init: "selectDefault('#{shop_tabs.first[:name]}')", cloak: true } } .tab-buttons .row .columns.small-12.large-8