{"action":"created","issue":{"url":"https://api.github.com/repos/makeusabrew/bootbox/issues/517","repository_url":"https://api.github.com/repos/makeusabrew/bootbox","labels_url":"https://api.github.com/repos/makeusabrew/bootbox/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/makeusabrew/bootbox/issues/517/comments","events_url":"https://api.github.com/repos/makeusabrew/bootbox/issues/517/events","html_url":"https://github.com/makeusabrew/bootbox/issues/517","id":156604710,"number":517,"title":"jQuery validator","user":{"login":"cmrabet","id":5342225,"avatar_url":"https://avatars.githubusercontent.com/u/5342225?v=3","gravatar_id":"","url":"https://api.github.com/users/cmrabet","html_url":"https://github.com/cmrabet","followers_url":"https://api.github.com/users/cmrabet/followers","following_url":"https://api.github.com/users/cmrabet/following{/other_user}","gists_url":"https://api.github.com/users/cmrabet/gists{/gist_id}","starred_url":"https://api.github.com/users/cmrabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmrabet/subscriptions","organizations_url":"https://api.github.com/users/cmrabet/orgs","repos_url":"https://api.github.com/users/cmrabet/repos","events_url":"https://api.github.com/users/cmrabet/events{/privacy}","received_events_url":"https://api.github.com/users/cmrabet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-24T20:44:43Z","updated_at":"2016-05-27T00:21:32Z","closed_at":"2016-05-27T00:21:32Z","body":"I can't make the jQuery validator to work with Bootbox, see below example:\r\n\r\n```\r\n\t\t\t\tbootbox.dialog({\r\n\t\t\t\t\tsize:'large',\r\n\t\t\t\t\tclassName:'dialogSaveConfiguration',\r\n\t\t\t\t\ttitle:'<i class=\"fa fa-floppy-o\"></i> Save Roll Configuration',\r\n\t    \t\t\tmessage:'<form id=\"saveConfigurationRollNewForm\">'+$('div#dialog_save_configuration').html()+'</form>',\r\n\t\t    \t\tbuttons:{   \t    \t\t\r\n\t\t\t\t\t\tsave:{\r\n\t\t\t    \t\t\tlabel:'Save',\t\t\t\t\r\n\t\t\t    \t\t\tclassName:'btn-success',\r\n\t\t\t    \t\t\tcallback:function(){\r\n\t\t\t    \t\t\t\t$('form#saveConfigurationRollNewForm').validate({\r\n\t\t\t    \t\t\t\t\trules:{\r\n\t\t\t    \t\t\t\t\t\tsave_configuration_roll_id:{\r\n\t\t\t    \t\t\t\t\t\t\trequired:true,\r\n\t\t\t    \t\t\t\t\t\t\temail:true\r\n\t\t\t    \t\t\t\t\t\t}\r\n\t\t\t    \t\t\t\t\t}\r\n\t\t\t    \t\t\t\t});\r\n\t\t\t    \t\t\t\treturn false;\r\n\t\t\t    \t\t\t\t// Serialize the dialog's form and send to the server for storage\r\n\t\t\t\t\t\t\t\t//var serialForm=$('form[name=saveConfigurationRollNew]').serialize();\r\n\t\t\t\t\t\t\t\t//socket.emit('saveNewRollConfiguration',serialForm);\r\n\t\t\t    \t\t\t}\r\n\t\t\t    \t\t},\t    \t\t\r\n\t\t\t    \t}\r\n\t\t    \t});\r\n```"},"comment":{"url":"https://api.github.com/repos/makeusabrew/bootbox/issues/comments/222030343","html_url":"https://github.com/makeusabrew/bootbox/issues/517#issuecomment-222030343","issue_url":"https://api.github.com/repos/makeusabrew/bootbox/issues/517","id":222030343,"user":{"login":"cmrabet","id":5342225,"avatar_url":"https://avatars.githubusercontent.com/u/5342225?v=3","gravatar_id":"","url":"https://api.github.com/users/cmrabet","html_url":"https://github.com/cmrabet","followers_url":"https://api.github.com/users/cmrabet/followers","following_url":"https://api.github.com/users/cmrabet/following{/other_user}","gists_url":"https://api.github.com/users/cmrabet/gists{/gist_id}","starred_url":"https://api.github.com/users/cmrabet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmrabet/subscriptions","organizations_url":"https://api.github.com/users/cmrabet/orgs","repos_url":"https://api.github.com/users/cmrabet/repos","events_url":"https://api.github.com/users/cmrabet/events{/privacy}","received_events_url":"https://api.github.com/users/cmrabet/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T00:21:32Z","updated_at":"2016-05-27T00:21:32Z","body":"@tiesont thanks! It's working now.\r\n\r\nThe problem I had is that no error messages were showing up under the input controls when I rule was not satisfied. I did what you suggested and works now."}}
{"actor":{"display_login":"cmrabet"}}