From f2fc470a6bf6117aae2334698d7621a73e688b87 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 14 Jul 2015 15:59:24 +0200 Subject: [PATCH] Call onShow event for formPanels after hiding the loading div --- src/sunstone/public/app/sunstone.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 69fb6e050b..19bfaaa9cd 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -757,12 +757,12 @@ define(function(require) { $(".reset_button", context).hide(); } + _hideFormPanelLoading(tabId); + formPanelInstance.onShow(formContext); if (onShow2) { onShow2(formPanelInstance, formContext); } - - _hideFormPanelLoading(tabId); }, 13) } @@ -799,10 +799,13 @@ define(function(require) { formPanelId = formPanelInstance.formPanelId; formPanelInstance.reset(context); - formPanelInstance.onShow(context); } _hideFormPanelLoading(tabId); + + if (formPanelInstance) { + formPanelInstance.onShow(context); + } }, 13) }