Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you look at the <a href="https://github.com/gregbell/active_admin/blob/master/app/assets/javascripts/active_admin/base.js">activeadmin base manifest file</a> you'll see where the additional jquery load is called. The last call in the base manifest is to the activeadmin application manifest. Therefore there is an easy way to bypass the unwanted additional jquery load. </p> <p>Change this line in you application's /app/assets/javascripts/active_admin.js:</p> <pre><code>//= require active_admin/base </code></pre> <p>To</p> <pre><code>//= require active_admin/application </code></pre> <p>That way active admin's javascript code will be loaded without reloading jquery.</p> <p>Within the /admin space, active admin loads active_admin.js without loading application.js, so you need to load application.js there too. To work, you need to make active admin load application.js before active_admin.js. Add this to config/initializers/active_admin.rb:</p> <pre><code>current_javascripts = config.javascripts.clone config.clear_javascripts! config.register_javascript 'application.js' current_javascripts.reverse.each{|j| config.register_javascript j} </code></pre> <p>However, note that for this to work seamlessly, you may need all these declarations in your app's application.js manifest:</p> <pre><code>//= require jquery //= require jquery-ui //= require jquery_ujs </code></pre> <p>Also as application.js is being loaded within active admin, you need to manage any namespace conflicts yourself.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload