Sha256: ce64b712c72fe95d1c3092b929f77c455628187fd5f557d9e2af4b04148832ac

Contents?: true

Size: 360 Bytes

Versions: 8

Compression:

Stored size: 360 Bytes

Contents

import jquery from 'jquery'
import 'bootstrap'
import 'popper.js'

const $ = jquery

document.addEventListener("spree:load", function() {
  $('.with-tip').each(function() {
    $(this).tooltip({ container: 'body' })
  })

  $('.with-tip').on('show.bs.tooltip', function(event) {
    if (('ontouchstart' in window)) {
      event.preventDefault()
    }
  })
})

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_backend-4.7.2 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.6.2 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.7.1 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.7.0 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.6.1 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.6.0 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.5.1 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.5.0 app/javascript/spree/dashboard/utilities/bootstrap.js