Sha256: a3eddee4a2fa536456f3e80993cef8c770465d5ebe2261c048e4499707c8220d

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

document.addEventListener('turbolinks:load', () => {
  const localeSelect = document.querySelectorAll('select[name=switch_to_locale]')

  if (localeSelect.length) {
    localeSelect.forEach((element) => {
      element.addEventListener('change', () => {
        Harpiya.clearCache()
        Harpiya.showProgressBar()
        element.form.submit()
      })
    })
  }
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harpiya_frontend-4.3.0.alpha app/assets/javascripts/harpiya/frontend/locale.es6