diff --git a/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar.js b/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar.js index c350ae1f17..9766a5890f 100644 --- a/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar.js +++ b/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar.js @@ -66,7 +66,7 @@ define(function(require) { function _setup(context) { var that = this; - context.foundation('abide', 'reflow'); + Foundation.reflow(context, 'abide'); that.arTab.setup(context, "add_ar"); @@ -75,16 +75,19 @@ define(function(require) { Sunstone.getDialog(DIALOG_ID).show(); }); - $('#add_ar_form',context).on('invalid.fndtn.abide', function () { + $('#add_ar_form', context) + .on('forminvalid.zf.abide', function(ev, frm) { Notifier.notifyError(Locale.tr("One or more required fields are missing.")); - }).on('valid.fndtn.abide', function () { + }) + .on('formvalid.zf.abide', function(ev, frm) { var data = that.arTab.retrieve(); var obj = {AR: data}; Sunstone.runAction('Network.add_ar', that.vnetId, obj); - - return false; - }); + }) + .on("submit", function(ev) { + ev.preventDefault(); + }); } function _onShow(context) { diff --git a/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar/html.hbs b/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar/html.hbs index d3bc6abbe3..1fb1bf887f 100644 --- a/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar/html.hbs +++ b/src/sunstone/public/app/tabs/vnets-tab/dialogs/add-ar/html.hbs @@ -14,7 +14,7 @@ {{! limitations under the License. }} {{! -------------------------------------------------------------------------- }} -
+
@@ -37,7 +37,9 @@
- × +
diff --git a/src/sunstone/public/app/tabs/vnets-tab/dialogs/reserve/html.hbs b/src/sunstone/public/app/tabs/vnets-tab/dialogs/reserve/html.hbs index 5e1adfcb7f..b3ec2d9786 100644 --- a/src/sunstone/public/app/tabs/vnets-tab/dialogs/reserve/html.hbs +++ b/src/sunstone/public/app/tabs/vnets-tab/dialogs/reserve/html.hbs @@ -14,7 +14,7 @@ {{! limitations under the License. }} {{! -------------------------------------------------------------------------- }} -
+
@@ -82,7 +82,9 @@
- × +
diff --git a/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar.js b/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar.js index bce40131fb..ac61ab3ee6 100644 --- a/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar.js +++ b/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar.js @@ -66,7 +66,7 @@ define(function(require) { function _setup(context) { var that = this; - context.foundation('abide', 'reflow'); + Foundation.reflow(context, 'abide'); that.arTab.setup(context, "update_ar"); diff --git a/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar/html.hbs b/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar/html.hbs index 7e5d0c8d75..0d57a5ef2d 100644 --- a/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar/html.hbs +++ b/src/sunstone/public/app/tabs/vnets-tab/dialogs/update-ar/html.hbs @@ -14,7 +14,7 @@ {{! limitations under the License. }} {{! -------------------------------------------------------------------------- }} -
+
@@ -34,7 +34,9 @@
- × +