mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
bug #3557: Add namespace event check, while abide is fixed in foundation
https://github.com/zurb/foundation/issues/5392
This commit is contained in:
parent
50f5feed5e
commit
f2e06a5bda
@ -180,10 +180,20 @@ function initialize_create_security_group_dialog(dialog){
|
||||
}
|
||||
});
|
||||
|
||||
$('#create_security_group_form_advanced',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_security_group_form_advanced',dialog).on('invalid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_security_group_form", $("#secgroups-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#create_security_group_form_advanced',dialog).attr("action") == "create") {
|
||||
|
||||
var template = $('textarea#template',dialog).val();
|
||||
|
@ -434,10 +434,20 @@ function setup_upload_support_file_dialog() {
|
||||
function initialize_create_support_request_dialog() {
|
||||
$('#create_support_request_form_wizard').foundation();
|
||||
|
||||
$('#create_support_request_form_wizard').on('invalid.fndtn.abide', function () {
|
||||
$('#create_support_request_form_wizard').on('invalid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_support_request_form", $("#support-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
var template = {
|
||||
"subject" : $('#subject', this).val(),
|
||||
"description" : $('#description', this).val(),
|
||||
|
@ -3843,10 +3843,20 @@ function initialize_create_template_dialog(dialog) {
|
||||
//$('button',dialog).button();
|
||||
|
||||
//Process form
|
||||
$('#create_template_form_wizard',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_template_form_wizard',dialog).on('invalid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_template_form", $("#templates-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#create_template_form_wizard',dialog).attr("action") == "create") {
|
||||
var vm_json = build_template(this);
|
||||
vm_json = {vmtemplate: vm_json};
|
||||
@ -3864,10 +3874,20 @@ function initialize_create_template_dialog(dialog) {
|
||||
}
|
||||
});
|
||||
|
||||
$('#create_template_form_advanced',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_template_form_advanced',dialog).on('invalid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_template_form", $("#templates-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#create_template_form_advanced',dialog).attr("action") == "create") {
|
||||
var template = $('textarea#template',this).val();
|
||||
|
||||
|
@ -663,10 +663,20 @@ function initialize_create_vdc_dialog(dialog) {
|
||||
dialog.foundation();
|
||||
|
||||
//Process form
|
||||
$('#create_vdc_form_wizard',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_vdc_form_wizard',dialog).on('invalid.fndtn.abide', function (e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_vdc_form", $("#vdcs-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
//Fetch values
|
||||
var vdc_json = {};
|
||||
|
||||
@ -830,10 +840,20 @@ function initialize_create_vdc_dialog(dialog) {
|
||||
}
|
||||
});
|
||||
|
||||
$('#create_vdc_form_advanced',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_vdc_form_advanced',dialog).on('invalid.fndtn.abide', function (e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_vdc_form", $("#vdcs-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#create_vdc_form_advanced',dialog).attr("action") == "create") {
|
||||
|
||||
var template = $('textarea#template',dialog).val();
|
||||
|
@ -1398,10 +1398,20 @@ function initialize_create_vnet_dialog(dialog) {
|
||||
dialog.foundation();
|
||||
|
||||
//Process form
|
||||
$('#create_vnet_form_wizard',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_vnet_form_wizard',dialog).on('invalid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_vnet_form", $("#vnets-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
//Fetch values
|
||||
var network_json = {};
|
||||
|
||||
@ -1440,10 +1450,20 @@ function initialize_create_vnet_dialog(dialog) {
|
||||
}
|
||||
});
|
||||
|
||||
$('#create_vnet_form_advanced',dialog).on('invalid.fndtn.abide', function () {
|
||||
$('#create_vnet_form_advanced',dialog).on('invalid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
popFormDialog("create_vnet_form", $("#vnets-tab"));
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
}).on('valid.fndtn.abide', function(e) {
|
||||
// Fix for valid event firing twice
|
||||
if(e.namespace != 'abide.fndtn') {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('#create_vnet_form_advanced',dialog).attr("action") == "create") {
|
||||
|
||||
var template = $('textarea#template',dialog).val();
|
||||
|
Loading…
x
Reference in New Issue
Block a user