mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 10:42:11 +00:00
fixed calling modal
This commit is contained in:
8
app/javascript/packs/modal.js
Normal file
8
app/javascript/packs/modal.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import "bootstrap";
|
||||
|
||||
const btn = document.getElementById("modalTrigger");
|
||||
const modal = document.getElementById("myModal");
|
||||
|
||||
btn.addEventListener('click', function(event) {
|
||||
$('#myModal').modal('show');
|
||||
});
|
||||
Reference in New Issue
Block a user