diff --git a/app/assets/javascripts/admin/orders/controllers/order_controller.js.coffee b/app/assets/javascripts/admin/orders/controllers/order_controller.js.coffee index 1ba6d96aed..822e81eb49 100644 --- a/app/assets/javascripts/admin/orders/controllers/order_controller.js.coffee +++ b/app/assets/javascripts/admin/orders/controllers/order_controller.js.coffee @@ -24,7 +24,3 @@ angular.module("admin.orders").controller "orderCtrl", ($scope, shops, orderCycl for shop in $scope.shops shop.disabled = !$scope.distributorHasOrderCycles(shop) - - # Hides the split button introduced by spree in the order form - # We only have one stock location in OFN so it's meaningless to split the order between stock locations - $('.split-item').hide() diff --git a/app/assets/stylesheets/admin/all.scss b/app/assets/stylesheets/admin/all.scss index 4a16154bf4..3c980bdd1c 100644 --- a/app/assets/stylesheets/admin/all.scss +++ b/app/assets/stylesheets/admin/all.scss @@ -16,4 +16,5 @@ @import 'variables'; @import 'components/*'; +@import 'pages/*'; @import '*'; diff --git a/app/assets/stylesheets/admin/pages/order_edit_form.css.scss b/app/assets/stylesheets/admin/pages/order_edit_form.css.scss new file mode 100644 index 0000000000..8b2fcd81c3 --- /dev/null +++ b/app/assets/stylesheets/admin/pages/order_edit_form.css.scss @@ -0,0 +1,5 @@ +// Hides the split button introduced by spree in the order form +// We only have one stock location in OFN so it's meaningless to split the order between stock locations +table td.actions [class*='icon-'].split-item { + display: none; +}