Commit 11f6213e authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix a race condition because `DOMContentLoaded` != `.ready()`

parent d22993b4
......@@ -9,7 +9,6 @@
},
mounted() {
$(`#${this.id}`).appendTo('body').modal({ modal: true, show: false });
$('.modal-header .close').bind('click', () => modal.hide());
},
filters: {
emptyRepo: (value) => {
......@@ -43,7 +42,7 @@
`,
});
document.addEventListener('DOMContentLoaded', () => {
$(document).ready(() => {
const geoClone = document.getElementById('geo-clone');
if (geoClone) {
gl.GeoCloneDialog = new Vue({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment