jquery-tabledit
jquery-tabledit copied to clipboard
One table affects another
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;