With help, the solution is: (Change the “Recalls” to the tab name and change “RecallWindowClosed” to the process you want to call)
setInterval (function () {
var ct_closableTabs = $(".aw-closable-tab");
for (var ct_counter = 0; ct_counter < ct_closableTabs.length; ++ ct_counter)
{
var ct_tab = $(ct_closableTabs[ct_counter]);
if (ct_tab.closest("li").text () == "Recalls")
{
ct_tab.bind ("click", function () {
AwareApp.startProcess ("RecallWindowClosed");
}
);
break;
}
}
}, 1000);