diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index cc20cf0774..c0b5f33893 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -903,9 +903,9 @@ define(function(require) { setTimeout(function() { var formPanelInstance = SunstoneCfg["tabs"][tabId].activeFormPanel - if ($(".wizardForms.is-active", context).length > 0) { + if ($(".wizardForms", context).is(":visible")) { $('#' + formPanelInstance.formPanelId + 'Wizard').submit(); - } else if ($(".advancedForms.is-active", context).length > 0) { + } else if ($(".advancedForms", context).is(":visible")) { $('#' + formPanelInstance.formPanelId + 'Advanced').submit(); } }, 13)