Events-ConfimClose takes 5 clicks to close when using tabs
Events-ConfimClose takes 5 clicks to close when using tabs
I'm using the current version of Editor and I have coupled that with the tableTools Tabs example where I now have 5 tabs present. All is working fine with my database. When I copy the events portions of the confirm close example over and use it, it works however, it takes 5 clicks of the buttons to close out, 2 to close the form and 3 more to close the confirming window. If I reduce the number of tabs to 4 then it takes 4 clicks to close out. Initially I thought it was because I used the name editor in each of my instances, so I created a new name for each instance and events of the tabs but it still didn't change the behavior. If I only use the events in 1 or all 5 tabs, it still takes 5 clicks to close. Thanks for your help.
This discussion has been closed.
Replies
I'm probably being really daft, but which example is that? Can you link me to it please, just so I can be certain I'm singing from the same sheet! If you could post a link to your page that would be very helpful as well and allow me to debug the issue a lot quicker.
Allan
Thanks for the update - I had clean forgotten about that example and embarrassingly it isn't linked from the other examples (which I'll fix!).
This unfortunately is a bug in Editor. The problem was when multiple instances of Editor were used, the display controllers were both attaching multiple events (one for each instance) rather than just using events for the instance that was being worked with. This would result in display events (such as close) being fired multiple times - hence the problem you were seeing.
I've implemented a fix and it will be included in Editor 1.2.3. Can I ping you a copy of the development version of Editor 1.2.3 at the e-mail address your DataTables account is registered with, or PM me a different address if you prefer?
Regards,
Allan