I got it working with this:
function updateTableAfterSubmit() {
table.ajax.reload( function (json){
auto_btn_height_width();
}, false );
}
function auto_btn_height_width() {
$('td.mfg-view-cols').each(function() {
tdWidth = $(this).width();
tdHeight = $(this).height();
$(this).find('button').css({'width': tdWidth, 'height': tdHeight});
console.log(tdHeight);
});
console.log($('td.mfg-view-cols').length);
}
Then just had to make sure I identified the right events to do call backs on. Works great now.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.