move coffee directive to partial

This commit is contained in:
Eduardo
2020-08-02 20:01:49 -03:00
parent bda47d97ee
commit 51f39ee89d
2 changed files with 3 additions and 3 deletions

View File

@@ -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'])

View File

@@ -1 +1,4 @@
%li.links-dropdown#links-dropdown{ links: order_links(@order).to_json }
:coffee
angular.bootstrap(document.getElementById("links-dropdown"),['admin.dropdown'])