How about an onSelectTab function that fires, when a tab is clicked?
- Code: Select all
function onSelectTab(i) {
if (something) {
alert('Complete the data before switching to the next tab');
return false;
}
}
This would work in the same way as nuBeforeSave. (if onSelectTab exists, it's called)