From 68df55b003f864487e96a42c13817ba3590cf58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 20 May 2016 12:45:47 +0200 Subject: [PATCH] Feature #4363: Fix advanced form panel submit --- src/sunstone/public/app/sunstone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)