Forum
Table Manager Support
Table Manager SupportForums
No se permite escribir sin estar logado. Por favor, login
Re: Delete Confirmation 24.11.2014 11:06
Hello,
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:
$(this).find('.tmremovelink').click(function(event){
var delconfirm = confirm("Are you sure!");
if (delconfirm == true) {
event.stopPropagation();
tmajaxstart();
var idRow=$(this).closest('tr').find('input[type=hidden][name=tmrid]').val();
$(TM.anchor).find('#tmform').find('input[name="task"]').val('tmdelete');
$(TM.anchor).find('#tmform').find('input[name="rowid"]').val(idRow);
$.post("index.php", $(TM.anchor).find('#tmform').serialize())
.done(function(data) {
TM.tmtable.createHeaderContent();
tmajaxend();
});
}
});
Hope this helps. Regards,
Moonsoft Team
www.moonsoft.es
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:
$(this).find('.tmremovelink').click(function(event){
var delconfirm = confirm("Are you sure!");
if (delconfirm == true) {
event.stopPropagation();
tmajaxstart();
var idRow=$(this).closest('tr').find('input[type=hidden][name=tmrid]').val();
$(TM.anchor).find('#tmform').find('input[name="task"]').val('tmdelete');
$(TM.anchor).find('#tmform').find('input[name="rowid"]').val(idRow);
$.post("index.php", $(TM.anchor).find('#tmform').serialize())
.done(function(data) {
TM.tmtable.createHeaderContent();
tmajaxend();
});
}
});
Hope this helps. Regards,
Moonsoft Team
www.moonsoft.es