1 - Go to
Code: Select all
admin/view/javascript/common.js
Code: Select all
// Highlight any found errors
Code: Select all
// Highlight TABS with any found errors
$('.text-danger').each(function() {
var tabId = $(this).parent().parent().parent().attr('id');
$( "a[href*='"+tabId+"']").css('color','#f00');
if(tabId.substr(0, 3) == 'tab') {
$( "#form-product > ul a[href*='"+tabId+"']").css('color','#f00');
} else {
tabId = $(this).parent().parent().parent().parent().parent().attr('id');
$( "#form-product > ul a[href*='"+tabId+"']").css('color','#f00');
}
});
The beauty of it is that it works in multilingual tabs too
Enjoy