feature #3748: Fix error in reset button

This commit is contained in:
Daniel Molina committed 2015-05-29 16:51:59 +02:00
1 parent bd0a9dc26a
commit 55200d2dbe
1 file changed
+5 -4
+5 -4
View File
@@ -770,10 +770,11 @@ define(function(require) {
var context = $("#" + tabId);
//$(".right-form", context).html(content);
var formPanelInstance = SunstoneCfg["tabs"][tabId].activeFormPanel;
// Set title and button strings
$(".right-form-title", context).text(formPanelInstance.title());
$(".submit_button", context).text(formPanelInstance.buttonText());
if (formPanelInstance) {
// Set title and button strings
$(".right-form-title", context).text(formPanelInstance.title());
$(".submit_button", context).text(formPanelInstance.buttonText());
}
$(".loadingForm", context).hide();
$(".tabs-contentForm", context).show();