From 51f39ee89d8fd64656421db4b43c20cbc1c02844 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Sun, 2 Aug 2020 20:01:49 -0300 Subject: [PATCH] move coffee directive to partial --- app/views/spree/admin/orders/edit.html.haml | 3 --- app/views/spree/admin/shared/_order_links.html.haml | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/spree/admin/orders/edit.html.haml b/app/views/spree/admin/orders/edit.html.haml index 8d5d26eecc..ada2ff5953 100644 --- a/app/views/spree/admin/orders/edit.html.haml +++ b/app/views/spree/admin/orders/edit.html.haml @@ -29,6 +29,3 @@ %div{"data-hook" => "admin_order_edit_form"} = render :partial => 'form', :locals => { :order => @order } - -:coffee - angular.bootstrap(document.getElementById("links-dropdown"),['admin.dropdown']) diff --git a/app/views/spree/admin/shared/_order_links.html.haml b/app/views/spree/admin/shared/_order_links.html.haml index 7db3d968be..352371c04a 100644 --- a/app/views/spree/admin/shared/_order_links.html.haml +++ b/app/views/spree/admin/shared/_order_links.html.haml @@ -1 +1,4 @@ %li.links-dropdown#links-dropdown{ links: order_links(@order).to_json } + +:coffee + angular.bootstrap(document.getElementById("links-dropdown"),['admin.dropdown'])