I would like one of my tables, which is front-end editable, to not show the warning popup: "Are you sure? Confirm deletion. There is no undo" when a user attempts to delete a row.
Is it possible to completely eliminate this popup message? Either for this table absolutely or for a particular page?
It can be done, but you need to change wpdatatables.js, and turn off "Use minified wpDataTables Javascript" option in wpDataTables settings/Custom JS and CSS tab. Also, after the plugin is updated, you will need to do it again, since the changes will be overwritten.
In file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js around line 1324 you will find this:
I replaced the old code with the new code in the wpdatatables.js file and turned off the minified option in Settings.
It works beautifully in the back end -- as long as I use "Excel-like" view. The data is all visible and if I delete a row there is no 'confirm deletion' popup. Which is fabulous.
The only problem is that in standard view in the back end (and everywhere on the front end) none of my 100+ wpdatatables can remember their data.
I'm attaching screenshots to show you what they look like on the back end. On the front end they refuse to show up at all.
P.S. Thinking maybe the problem was elsewhere, I tried...
Reverting to the old code, and that fixes everything -- but then I get the confirm-deletion popup back.
Switching again to the new code -- same problem as described.
I'm not sure why it's behaving like this, so I forwarded the ticket to one of our developers.
As soon as he checks it out I will get back to you.
I have to apologize for the delay up front, because they are currently working on some priority fixes for the plugin and it may be a few days until this is resolved.
Hi there,
I would like one of my tables, which is front-end editable, to not show the warning popup: "Are you sure? Confirm deletion. There is no undo" when a user attempts to delete a row.
Is it possible to completely eliminate this popup message? Either for this table absolutely or for a particular page?
Thanks for any suggestions.
Hello Marian
It can be done, but you need to change wpdatatables.js, and turn off "Use minified wpDataTables Javascript" option in wpDataTables settings/Custom JS and CSS tab. Also, after the plugin is updated, you will need to do it again, since the changes will be overwritten.
In file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js around line 1324 you will find this:
And replace it with this:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
Thank you very much!
I replaced the old code with the new code in the wpdatatables.js file and turned off the minified option in Settings.
It works beautifully in the back end -- as long as I use "Excel-like" view. The data is all visible and if I delete a row there is no 'confirm deletion' popup. Which is fabulous.
The only problem is that in standard view in the back end (and everywhere on the front end) none of my 100+ wpdatatables can remember their data.
I'm attaching screenshots to show you what they look like on the back end. On the front end they refuse to show up at all.
P.S. Thinking maybe the problem was elsewhere, I tried...
Reverting to the old code, and that fixes everything -- but then I get the confirm-deletion popup back.
Switching again to the new code -- same problem as described.
Thanks again.
You're welcome, Marian
I'm not sure why it's behaving like this, so I forwarded the ticket to one of our developers.
As soon as he checks it out I will get back to you.
I have to apologize for the delay up front, because they are currently working on some priority fixes for the plugin and it may be a few days until this is resolved.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi again Marian
Looks like I made a mistake when I pasted the code - I pasted an extra forward-slash in the beginning (check the screenshot below):
So delete that, or copy the corrected code:
And that should do it.
Please let me know.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi again Aleksandar,
My heartfelt thanks.
This works beautifully and my visitors will be much happier, I think.
Thanks again.
Marian
You're welcome, Marian
Glad I could be of service, and sorry for the error.
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables