fixed issue where modal trigger broke navbar

This commit is contained in:
Beatrice Olivera
2018-08-31 11:55:03 +01:00
parent d0803e7e72
commit 4eecfe6291
6 changed files with 34 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
const triggerModalEvent = () => {
const btn = document.getElementById("modalTrigger");
const modal = document.getElementById("myModal");
btn.addEventListener('click', function(event) {
$('#myModal').modal('show');
});
}
export { triggerModalEvent }

View File

@@ -1,4 +1,9 @@
import "bootstrap";
import { profilePageAnimation } from '../users/lesson';
profilePageAnimation();
import { triggerModalEvent } from "../components/modal.js";
triggerModalEvent();
// import { profilePageAnimation } from '../users/lesson';
// profilePageAnimation();

View File

@@ -1,8 +0,0 @@
import "bootstrap";
const btn = document.getElementById("modalTrigger");
const modal = document.getElementById("myModal");
btn.addEventListener('click', function(event) {
$('#myModal').modal('show');
});