mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-31 17:17:40 +03:00
bug #3945: Fix abide event for update ar form
This commit is contained in:
parent
7406010295
commit
4aec408535
@ -50,12 +50,13 @@ define(function(require) {
|
|||||||
|
|
||||||
function _setup(context) {
|
function _setup(context) {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
context.foundation('abide', 'reflow');
|
||||||
|
|
||||||
that.arTab.setup(context, "update_ar");
|
that.arTab.setup(context, "update_ar");
|
||||||
|
|
||||||
$('#update_ar_form',context).on('invalid', function () {
|
$('#update_ar_form',context).on('invalid.fndtn.abide', function () {
|
||||||
Notifier.notifyError(tr("One or more required fields are missing."));
|
Notifier.notifyError(tr("One or more required fields are missing."));
|
||||||
}).on('valid', function () {
|
}).on('valid.fndtn.abide', function () {
|
||||||
var data = that.arTab.retrieve();
|
var data = that.arTab.retrieve();
|
||||||
|
|
||||||
data['AR_ID'] = that.arId;
|
data['AR_ID'] = that.arId;
|
||||||
|
Loading…
Reference in New Issue
Block a user