2021-09-08 05:26:31 -04:00
|
|
|
import { setupSearch } from './search'
|
|
|
|
|
|
|
|
document
|
|
|
|
.querySelectorAll('[data-ol-contact-form-with-search]')
|
|
|
|
.forEach(setupSearch)
|
|
|
|
|
|
|
|
document.querySelectorAll('a[ng-click="contactUsModal()"]').forEach(el => {
|
|
|
|
el.addEventListener('click', function (e) {
|
|
|
|
e.preventDefault()
|
2021-09-22 07:13:18 -04:00
|
|
|
$('[data-ol-contact-form-modal="contact-us"]').modal()
|
2021-09-08 05:26:31 -04:00
|
|
|
})
|
|
|
|
})
|
2021-09-22 07:13:18 -04:00
|
|
|
|
|
|
|
document
|
|
|
|
.querySelectorAll('[data-ol-open-contact-form-modal="general"]')
|
|
|
|
.forEach(el => {
|
|
|
|
el.addEventListener('click', function (e) {
|
|
|
|
e.preventDefault()
|
|
|
|
$('[data-ol-contact-form-modal="general"]').modal()
|
|
|
|
})
|
|
|
|
})
|