1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-29 21:47:02 +03:00

bug #3945: Fix abide event for add rule form

This commit is contained in:
Daniel Molina 2015-08-25 17:33:47 +02:00
parent 1d0feab91d
commit 25266b135e

View File

@ -88,6 +88,7 @@ define(function(require) {
function _setup(context) {
var that = this;
context.foundation('abide', 'reflow');
context.off("change", '.security_group_rule_protocol');
context.on("change", '.security_group_rule_protocol', function(){
@ -150,12 +151,12 @@ define(function(require) {
}
});
$('#rules_form_wizard',context).off('invalid');
$('#rules_form_wizard',context).off('valid');
$('#rules_form_wizard',context).off('invalid.fndtn.abide');
$('#rules_form_wizard',context).off('valid.fndtn.abide');
$('#rules_form_wizard',context).on('invalid', function () {
$('#rules_form_wizard',context).on('invalid.fndtn.abide', function () {
}).on('valid', function() {
}).on('valid.fndtn.abide', function() {
var rule = {};
rule["PROTOCOL"] = $(".security_group_rule_protocol", context).val();