mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
Feature #4363: Fix vnets dialogs
This commit is contained in:
1 parent
50d7f759c3
commit
cd5b731ba1
5 files changed
+22
-13
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal large max-height" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal large max-height" data-reveal>
|
||||
<div class="reveal-body">
|
||||
<form data-abide="ajax" id="add_ar_form" action="">
|
||||
<div class="row">
|
||||
@@ -37,7 +37,9 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal large max-height" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal large max-height" data-reveal>
|
||||
<div class="reveal-body">
|
||||
<form id="reserve_form" action="">
|
||||
<div class="row">
|
||||
@@ -82,7 +82,9 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal large max-height" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal large max-height" data-reveal>
|
||||
<div class="reveal-body">
|
||||
<form data-abide="ajax" id="update_ar_form" action="">
|
||||
<div class="row">
|
||||
@@ -34,7 +34,9 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user