Open htpasswd opened 7 years ago
Update: now it works as it suposed to work, but, only if I put:
$('.shortNoteOfLeadClass').editable("destroy");
Right before:
document.getElementsByClassName("shortNoteOfLeadClass")[0].setAttribute("data-pk", telID);
But it doesn't work if I add:
span.onclick = function() {
modal.style.display = "none";
$('#shortNoteOfLead').editable("destroy");
$('#DataTables_Table_0').DataTable().draw();
}
At the end of the script. Because I use next modal right after closing the first one. But it still doesn't destroy
the previous pk
if I use it when close the first modal. By all the settings, the second modal opens with new pk
, but X-Editable still sends the first modal's pk
.
Hello. I have a modal window, that I fill dynamically. It opens for every row in a table after clicking a button. Here is an example:
This is how I fill the form:
But the problem is, that every time the modal opens, it works good. All the data fills in without any error. All texts are as they are in the table. All the PK change in the modal and when I edit/save text it works good. But after I submit the form second time, it changes only the first "pk" I was submitting at the first place. But not the new ones, that are updated every time I open the modal.