bind submitForm event listener to keep _editForm

This commit is contained in:
groovecoder 2017-03-10 11:02:29 -06:00 committed by Jonathan Kingston
parent b3c337da91
commit 9d5223cd71

View file

@ -484,9 +484,9 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
this._editForm = document.getElementById("edit-container-panel-form");
const editLink = document.querySelector("#edit-container-ok-link");
editLink.addEventListener("click", this._submitForm);
editLink.addEventListener("submit", this._submitForm);
this._editForm.addEventListener("submit", this._submitForm);
editLink.addEventListener("click", this._submitForm.bind(this));
editLink.addEventListener("submit", this._submitForm.bind(this));
this._editForm.addEventListener("submit", this._submitForm.bind(this));
},
_submitForm() {