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 822e81eb49..39faaaa205 100644 --- a/app/assets/javascripts/admin/orders/controllers/order_controller.js.coffee +++ b/app/assets/javascripts/admin/orders/controllers/order_controller.js.coffee @@ -24,3 +24,8 @@ angular.module("admin.orders").controller "orderCtrl", ($scope, shops, orderCycl for shop in $scope.shops shop.disabled = !$scope.distributorHasOrderCycles(shop) + + # Removes 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 + # We delete it instead of hiding or changing CSS so that, when spree code toggles the element, nothing hapens + $('.split-item').remove() diff --git a/app/assets/stylesheets/admin/pages/order_edit_form.css.scss b/app/assets/stylesheets/admin/pages/order_edit_form.css.scss deleted file mode 100644 index 8b2fcd81c3..0000000000 --- a/app/assets/stylesheets/admin/pages/order_edit_form.css.scss +++ /dev/null @@ -1,5 +0,0 @@ -// 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; -}