Sha256: 9b8f3bbc08de893123d5671e04edfeeac407f368907093d7b0103a6dd4ae397d

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 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: $(this)
    })
  })

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-4.4.1 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.4.0 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.4.0.rc2 app/javascript/spree/dashboard/utilities/bootstrap.js
spree_backend-4.4.0.rc1 app/javascript/spree/dashboard/utilities/bootstrap.js