Skip to content

Commit f09e678

Browse files
committed
Fix issue in which line items UI supported by cocoon was not working
1 parent e0e2e78 commit f09e678

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/javascript/application.js

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* Load all javascript needed to run the AdminLTE theme and
55
* all the interactions.
66
*/
7+
import jQuery from 'jquery'
8+
window.jQuery = jQuery
9+
window.$ = jQuery
10+
711
import 'admin-lte'
12+
import "@oddcamp/cocoon-vanilla-js";
813

914
console.log("Hello from importmap-rails!")

config/importmap.rb

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
pin "application", preload: true
44
pin "admin-lte", to: "https://ga.jspm.io/npm:[email protected]/dist/js/adminlte.min.js"
5+
pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js", preload: true
6+
pin "@oddcamp/cocoon-vanilla-js", to: "https://ga.jspm.io/npm:@oddcamp/[email protected]/index.js"

0 commit comments

Comments
 (0)