mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fixes #5230 Invalid element tab switch issue.
This commit is contained in:
@@ -454,8 +454,15 @@ $(document).ready(function()
|
||||
|
||||
$('#'+ id).find(':invalid').each(function (index, node) {
|
||||
|
||||
var tab = $('#'+node.id).closest('.tab-pane').attr('id');
|
||||
// console.log(node.id);
|
||||
// Attempt to find a parent '.tab-pane' for the invalid input.
|
||||
var tabPane = $(node).closest('.tab-pane');
|
||||
var tab = null;
|
||||
|
||||
// Check if '.tab-pane' was found.
|
||||
if(tabPane.length > 0) {
|
||||
// If found, get the id of the '.tab-pane'.
|
||||
tab = tabPane.attr('id');
|
||||
}
|
||||
|
||||
if(tab && (found === false))
|
||||
{
|
||||
|
Reference in New Issue
Block a user