Table Manager Support

Table Manager Support
No se permite escribir sin estar logado. Por favor, login

Delete Confirmation 24.11.2014 10:45

What is the best way to add a "Delete Confirmation" window or option rather than simply having a record delete upon clicking the X icon. Users now-a-days are used to having an ARE YOU SURE? option.

Re: Delete Confirmation 24.11.2014 11:06


You could add a confirm javascript code at JOOMLA/components/com_mstablemanager/assets/js/tablemanager.js, line 338, replacing '$(this).find('.tmremovelink').click' event code like this:

var delconfirm = confirm("Are you sure!");
if (delconfirm == true) {
var idRow=$(this).closest('tr').find('input[type=hidden][name=tmrid]').val();
$.post("index.php", $(TM.anchor).find('#tmform').serialize())
.done(function(data) {

Hope this helps. Regards,
Moonsoft Team

Re: Delete Confirmation 24.11.2014 19:09

Was a little further up from line 338 but it worked perfect! Thanks!
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Lo que nuestros clientes opinan de nosotros