Feature #4363: Fix template instantiate form

This commit is contained in:
Daniel Molina committed 2016-03-08 13:11:04 +01:00
1 parent a28d3da5e7
commit 746175fb2a
4 files changed
+7 -8

No files matched your search

+3 -3
View File
@@ -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)
@@ -80,8 +80,7 @@ define(function(require) {
});
}
function _setup(context) {
context.foundation('abide', 'reflow');
function _setup(context) {
}
function _submitWizard(context) {
@@ -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) {
@@ -387,7 +387,7 @@ define(function(require) {
$(".provision_add_network_interface", context).click();
}
$(document).foundation();
//TODO $(document).foundation();
}
function update_provision_networks_datatable(datatable) {