{"action":"closed","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/10","labels_url":"https://api.github.com/repos/formvalidation/support/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/10/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/10/events","html_url":"https://github.com/formvalidation/support/issues/10","id":56163895,"number":10,"title":"Enabling the submit button when there is no invalid fields not working","user":{"login":"chateauv","id":5333479,"avatar_url":"https://avatars.githubusercontent.com/u/5333479?v=3","gravatar_id":"","url":"https://api.github.com/users/chateauv","html_url":"https://github.com/chateauv","followers_url":"https://api.github.com/users/chateauv/followers","following_url":"https://api.github.com/users/chateauv/following{/other_user}","gists_url":"https://api.github.com/users/chateauv/gists{/gist_id}","starred_url":"https://api.github.com/users/chateauv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chateauv/subscriptions","organizations_url":"https://api.github.com/users/chateauv/orgs","repos_url":"https://api.github.com/users/chateauv/repos","events_url":"https://api.github.com/users/chateauv/events{/privacy}","received_events_url":"https://api.github.com/users/chateauv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/formvalidation/support/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-01T13:45:02Z","updated_at":"2015-02-02T14:45:45Z","closed_at":"2015-02-02T14:45:45Z","body":"$('#myForm').formValidation({\r\n                framework: 'bootstrap',\r\n                icon: {\r\n                    valid: 'glyphicon glyphicon-ok',\r\n                    invalid: 'glyphicon glyphicon-remove',\r\n                    validating: 'glyphicon glyphicon-refresh'\r\n                },\r\n                err: {\r\n                    container: 'tooltip'\r\n                },\r\n                fields: {\r\n                    'emails[]': {\r\n                        validators: {\r\n                            regexp: {\r\n                                regexp: /^([\\w\\.\\-_]+)?\\w+@[\\w-_]+(\\.\\w+){1,}$/igm,\r\n                                message: 'The input is not a valid email address'\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            })\r\n            .on('success.field.fv', function(e, data) {\r\n                if (data.fv.getInvalidFields().length > 0) {    // There is invalid field\r\n                    data.fv.disableSubmitButtons(true);\r\n                }\r\n            });"}}