Skip to content

Commit

Permalink
Merge pull request #160 from CruGlobal/js_fixes
Browse files Browse the repository at this point in the history
Fix javascript sources/mime type error
  • Loading branch information
jbirdjavi authored Apr 2, 2024
2 parents e8a3f20 + b69ab80 commit a686ebe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import 'jquery-form'
import 'jquery-validation'
import '@activeadmin/activeadmin'

import './custom/active_admin_custom'
import 'active_admin_custom'
8 changes: 5 additions & 3 deletions config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

# ActiveAdmin and dependencies
pin "@activeadmin/activeadmin", to: "https://cdn.jsdelivr.net/npm/@activeadmin/[email protected]/app/assets/javascripts/active_admin/base.min.js"
pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js"
pin "jquery", to: "https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.js"
pin "jquery-ui", to: "https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery-ui.min.js"
pin "jquery-ujs", to: "https://cdn.jsdelivr.net/npm/[email protected]/src/rails.min.js"
pin "jquery-validation", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.validate.js"
pin "jquery-form", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.form.min.js"
pin "jquery-validation", to: "https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.validate.js"
pin "jquery-form", to: "https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.form.min.js"

pin "active_admin_custom", to: "custom/active_admin_custom.js"

0 comments on commit a686ebe

Please sign in to comment.