Duplicate row problem
Duplicate row problem
Hello,
I'm using your duplicate row function and I got a bug there.
When I select a row and click on the duplicate button it opens the dialog as edit mode, after I click again on the duplicate button(while the current row is still selected) it works... it opens the dialog as duplicate mode. If I select other row the bug reproduces.
*** The duplicate button calls Split Lines ***
How can I fix it?
The link to the editor table is:
http://www.orders.tomluz.co.il
You need to login first, details:
Username: Admin
Password: 123456
The link to the JS file(handling the editor script):
http://www.orders.tomluz.co.il/cs/editor/custom/orders.js
Thanks.
Answers
Hi,
Thanks for the link. Could you confirm the exact steps in order to reproduce the error please? I've tried:
I've also tried:
Allan
Hello,
You didn't understand me. I'll explain:
Do you understand me now?
Don't click on the edit button.. I don't talk on this button. I'm talking about the behavior of the split lines button(duplicate function).
It looks to me like it did add the duplicated row. I do:
PO-NO
is being generated automatically at the server-side?Allan
Unfortunately, it's a bug in your plugin.
When you select the row from a cell it opens the inline editing. when the inline editing is open and you are trying to click on duplicate button("Split Lines") it opens the dialog as Edit mode...
To fix it -> Just wrap the function with setTimeout:
Hi,
Yes, unfortunately this is a bug in the duplicate button example if used with inline editing active. It does currently need a setTimeout to operate correctly. I'll will correct this in a future update.
Allan