Sha256: 5e14db867d66930e72e1bf1106350a93a9775f09b07e9ef1ebe22a999ce5298c

Contents?: true

Size: 1.92 KB

Versions: 47

Compression:

Stored size: 1.92 KB

Contents

#= require ./rails-ujs/BANNER
#= export Rails
#= require_self
#= require_tree ./rails-ujs/utils
#= require_tree ./rails-ujs/features
#= require ./rails-ujs/start

@Rails =
  # Link elements bound by rails-ujs
  linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]'

  # Button elements bound by rails-ujs
  buttonClickSelector:
    selector: 'button[data-remote]:not([form]), button[data-confirm]:not([form])'
    exclude: 'form button'

  # Select elements bound by rails-ujs
  inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]'

  # Form elements bound by rails-ujs
  formSubmitSelector: 'form'

  # Form input elements bound by rails-ujs
  formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])'

  # Form input elements disabled during form submission
  formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled'

  # Form input elements re-enabled after form submission
  formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled'

  # Form file input elements
  fileInputSelector: 'input[name][type=file]:not([disabled])'

  # Link onClick disable selector with possible reenable after remote submission
  linkDisableSelector: 'a[data-disable-with], a[data-disable]'

  # Button onClick disable selector with possible reenable after remote submission
  buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]'

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
jets-1.9.7 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.6 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.5 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.4 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.3 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.2 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.1 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.9.0 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.14 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.13 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.12 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.11 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.10 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.9 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.8 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.7 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.6 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.5 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.4 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee
jets-1.8.3 vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee