mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Remove jQuery from docs/repo.
Some of the snippets need to be updated later.
This commit is contained in:
@@ -67,11 +67,10 @@
|
||||
var exampleModal = document.getElementById('exampleModal')
|
||||
if (exampleModal) {
|
||||
exampleModal.addEventListener('show.bs.modal', function (event) {
|
||||
var button = event.relatedTarget // Button that triggered the modal
|
||||
var button = event.relatedTarget // Button that triggered the modal
|
||||
var recipient = button.getAttribute('data-whatever') // Extract info from data-* attributes
|
||||
|
||||
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
|
||||
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
|
||||
// Update the modal's content.
|
||||
var modalTitle = exampleModal.querySelector('.modal-title')
|
||||
var modalBodyInput = exampleModal.querySelector('.modal-body input')
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user