Is there a "post save" callback after Editor creates an entry into the database
Is there a "post save" callback after Editor creates an entry into the database
chrisworrell
Posts: 6Questions: 2Answers: 0
I am trying to see if there is some sort of after save callback where i can do some post save processing before the table reloads on the front end. (PHP)
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
did you mean
postSubmit Event => Ajax request has been completed, and data retrieved from the server (http://editor.datatables.net/reference/event/postSubmit)
you find this under http://editor.datatables.net/reference/event/
I think @chrisworrell might mean in the PHP, in which case, no at the moment there isn't.
What you would need to do is check to see if the
action
parameter is submitted to the server and if it isedit
. If so, then after you call theEditor->process()
method, you can perform that check and execute any post edit code you require.Allan
Thats the ticket.
A callback would be great though :)
Agreed - I think that is something that I will look at adding for 1.5.
Regards,
Allan