hendisantika / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 1 forks source link

dismiss add form upon submit #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it make more sense to dismiss the add dialog when the form is submitted?

It seems a bit odd (especially with bProcessing=true) that the dialog is still 
visible, yet in the background you see the processing box show up.

With the recent changes to accomodate the custom delete dialogs, it seems to 
operate more like what I would expect.

If an error happens, perhaps the box could then be re-displayed, etc.. 

What version of the product are you using? On what operating system?
1.2.4

Original issue reported on code.google.com by kenneth....@gmail.com on 3 Jun 2011 at 4:16

GoogleCodeExporter commented 9 years ago
I'm not sure that I understand what you need.
Currently, add form is shown until the add request finishes because you will 
show show in that form some error messages if add failed on server (e.g. lost 
DB connection). It would be strange to hide add form and then show it again 
with error mesage is something happens on the server.
Once add request is finished, add form fill be closed and form will be reset. 
If you don't like this you can probably customize this behaviour if you pass 
custom fnOnAdding, fnOnNewRowPosted, and fnOnAdded functions to the plugin and 
show/hide add dialog wheneve you want.

Jovan

Original comment by joc...@gmail.com on 3 Jun 2011 at 5:50

GoogleCodeExporter commented 9 years ago
I will close this one because there is no more conversaton about this topic

Original comment by joc...@gmail.com on 17 Jun 2011 at 6:41