From e55614b4c8dc89aa9e5f84b114c57ec515921de3 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 9 May 2018 14:07:58 +0200 Subject: [PATCH] Fix close issue --- assets/js/components/languagePicker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/components/languagePicker.js b/assets/js/components/languagePicker.js index 3be174fc..64bc7d9e 100644 --- a/assets/js/components/languagePicker.js +++ b/assets/js/components/languagePicker.js @@ -36,14 +36,14 @@ ComunicWeb.components.langPicker = { class: "modal-header" }); - var closeModal = createElem2({ + var closeModalBtn = createElem2({ appendTo: modalHeader, type: "button", class: "close", }); createElem2({ - appendTo: closeModal, + appendTo: closeModalBtn, type: "span", innerHTML: "x" }); @@ -122,7 +122,7 @@ ComunicWeb.components.langPicker = { //Make the buttons live cancelButton.onclick = closeModal; - closeModal.onclick = closeModal; + closeModalBtn.onclick = closeModal; //Show the modal $(modal).modal('show');