Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One table affects another #161

Open
evox777 opened this issue Jul 27, 2022 · 0 comments
Open

One table affects another #161

evox777 opened this issue Jul 27, 2022 · 0 comments

Comments

@evox777
Copy link

evox777 commented Jul 27, 2022

If there are multiple tables on a page. Editing one table causes a blank request (containing "&action=edit") to be sent from other table(s). This issue is also present on the example page:
https://markcell.github.io/jquery-tabledit/#examples

Initially I thought the issue was because the rows on different tables had the same ids, however giving the rows different ids still doesn't solve this issue.

Update: This behavior has to do with the user pressing enter key at any time which sends out a blank request from both tables.

Fix: Find function ajax(action) around line 370 in jquery.tabledit.js, and add:

//if request is empty:
if($table.find('.tabledit-input').serialize() === "")
return;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant