diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 54a387a755..db7a7146bd 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -600,7 +600,7 @@ define(function(require) { context.data('element', info[Object.keys(info)[0]]); var containerId = tabName + '-panels'; - var activaTab = $("dd.active a", $("#" + containerId)); + var activaTab = $("dd.is-active a", $("#" + containerId)); if (activaTab) { var activaTabHref = activaTab.attr('href'); } @@ -867,9 +867,9 @@ define(function(require) { setTimeout(function() { var formPanelInstance = SunstoneCfg["tabs"][tabId].activeFormPanel - if ($(".wizardForms.active", context).length > 0) { + if ($(".wizardForms.is-active", context).length > 0) { $('#' + formPanelInstance.formPanelId + 'Wizard').submit(); - } else if ($(".advancedForms.active", context).length > 0) { + } else if ($(".advancedForms.is-active", context).length > 0) { $('#' + formPanelInstance.formPanelId + 'Advanced').submit(); } }, 13) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js index 6c95a1b4fb..7ea56ab935 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js @@ -80,8 +80,7 @@ define(function(require) { }); } - function _setup(context) { - context.foundation('abide', 'reflow'); + function _setup(context) { } function _submitWizard(context) { diff --git a/src/sunstone/public/app/utils/form-panels/form-panel.js b/src/sunstone/public/app/utils/form-panels/form-panel.js index 3d29f7fe2f..518c0f5bd5 100644 --- a/src/sunstone/public/app/utils/form-panels/form-panel.js +++ b/src/sunstone/public/app/utils/form-panels/form-panel.js @@ -53,7 +53,7 @@ define(function(require) { Sunstone.hideFormPanelLoading(that.tabId); }) .on('formvalid.zf.abide', function(ev, frm) { - that.submitWizard(this); + that.submitWizard(frm); return false; }) .on("submit", function(ev) { @@ -66,7 +66,7 @@ define(function(require) { Sunstone.hideFormPanelLoading(that.tabId); }) .on('formvalid.zf.abide', function(ev, frm) { - that.submitAdvanced(this); + that.submitAdvanced(frm); return false; }) .on("submit", function(ev) { diff --git a/src/sunstone/public/app/utils/nics-section.js b/src/sunstone/public/app/utils/nics-section.js index 7569d9bcc7..92324b4184 100644 --- a/src/sunstone/public/app/utils/nics-section.js +++ b/src/sunstone/public/app/utils/nics-section.js @@ -387,7 +387,7 @@ define(function(require) { $(".provision_add_network_interface", context).click(); } - $(document).foundation(); + //TODO $(document).foundation(); } function update_provision_networks_datatable(datatable) {