Sha256: 2847526e2b30a2928a7784b1e3933e519551068425f9c39e066899007277d6ba

Contents?: true

Size: 470 Bytes

Versions: 14

Compression:

Stored size: 470 Bytes

Contents

onDOMReady = ->
  # In order for index scopes to overflow properly onto the next line, we have
  # to manually set its width based on the width of the batch action button.
  if (batch_actions_selector = $('.table_tools .batch_actions_selector')).length
    batch_actions_selector.next().css
      width: "calc(100% - 10px - #{batch_actions_selector.outerWidth()}px)"
      'float': 'right'

$(document).
  ready(onDOMReady).
  on 'page:load turbolinks:load', onDOMReady

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
activeadmin-rb-1.6.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-rb-1.5.2 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-rb-1.5.1 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-rb-1.5.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-rb-1.4.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.4.3 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.4.2 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.4.1 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.4.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.3.1 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.3.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.2.1 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.2.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee
activeadmin-1.1.0 app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee