mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
|
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()
|
||
|
$('[data-ol-contact-form-modal]').modal()
|
||
|
})
|
||
|
})
|