mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-25 21:39:21 +00:00
Fix close issue
This commit is contained in:
parent
53edcd8ffc
commit
e55614b4c8
@ -36,14 +36,14 @@ ComunicWeb.components.langPicker = {
|
|||||||
class: "modal-header"
|
class: "modal-header"
|
||||||
});
|
});
|
||||||
|
|
||||||
var closeModal = createElem2({
|
var closeModalBtn = createElem2({
|
||||||
appendTo: modalHeader,
|
appendTo: modalHeader,
|
||||||
type: "button",
|
type: "button",
|
||||||
class: "close",
|
class: "close",
|
||||||
});
|
});
|
||||||
|
|
||||||
createElem2({
|
createElem2({
|
||||||
appendTo: closeModal,
|
appendTo: closeModalBtn,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: "x"
|
innerHTML: "x"
|
||||||
});
|
});
|
||||||
@ -122,7 +122,7 @@ ComunicWeb.components.langPicker = {
|
|||||||
|
|
||||||
//Make the buttons live
|
//Make the buttons live
|
||||||
cancelButton.onclick = closeModal;
|
cancelButton.onclick = closeModal;
|
||||||
closeModal.onclick = closeModal;
|
closeModalBtn.onclick = closeModal;
|
||||||
|
|
||||||
//Show the modal
|
//Show the modal
|
||||||
$(modal).modal('show');
|
$(modal).modal('show');
|
||||||
|
Loading…
Reference in New Issue
Block a user