Override Action Link with Confirmation Popup
Add a CSS class to the action link column. In this example the CSS class is 'udaterecord'
2) use this code template:
var confirmationText = 'This will set the Contact Date to the current date. Do you want to continue?';
var setOnClickEventsForActionLinks = function(element){
element.find('.updaterecord a').click(function(){
var r = confirm(confirmationText);
if (r === true) {
return true;
} else {
return false;
}
});
};
TB.render('component_3',function(data){
var element = data.ele;
setOnClickEventsForActionLinks(element);
$('body').click(function(){
setTimeout(function(){
element.find('.action-link-confirm a').off();
setOnClickEventsForActionLinks(element);
},800);
});
});
We'd love to hear your feedback.