{"action":"created","comment":{"url":"https://api.github.com/repos/Heldraug/Coyola/pulls/comments/33374006","id":33374006,"diff_hunk":"@@ -102,11 +100,26 @@\n         // Event handler callbacks\n         events: {\n             beforeSubmit: function (e) {\n-                e.preventDefault();\n+                var ranges = this.parsleyForm.isValid('ranges', true),\n+                    nomatch = this.parsleyForm.isValid('nomatch', true),\n+                    $msg = $('#messages');\n+\n+                if (!(ranges || nomatch)) {\n+                    e.preventDefault();\n+                    //$msg.html('you have to choose one or more available time ranges');\n+                    $msg.removeClass('hidden-for-small-up');","path":"app/assets/javascripts/events/invite.js","position":25,"original_position":25,"commit_id":"9b8740c6157ff7af7eac0d03fce0c362e40bfbe8","original_commit_id":"9b8740c6157ff7af7eac0d03fce0c362e40bfbe8","user":{"login":"jayrore","id":6855553,"avatar_url":"https://avatars.githubusercontent.com/u/6855553?v=3","gravatar_id":"","url":"https://api.github.com/users/jayrore","html_url":"https://github.com/jayrore","followers_url":"https://api.github.com/users/jayrore/followers","following_url":"https://api.github.com/users/jayrore/following{/other_user}","gists_url":"https://api.github.com/users/jayrore/gists{/gist_id}","starred_url":"https://api.github.com/users/jayrore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayrore/subscriptions","organizations_url":"https://api.github.com/users/jayrore/orgs","repos_url":"https://api.github.com/users/jayrore/repos","events_url":"https://api.github.com/users/jayrore/events{/privacy}","received_events_url":"https://api.github.com/users/jayrore/received_events","type":"User","site_admin":false},"body":"lo que pasa es que en este caso la logica la manejamos nosotros con con verificaciones no validaciones es decir nosotros evaluamos lo que haremos con el resultado de varias validaciones,\r\ntiene sentido?\r\n","created_at":"2015-06-26T16:56:48Z","updated_at":"2015-06-26T16:56:48Z","html_url":"https://github.com/Heldraug/Coyola/pull/22#discussion_r33374006","pull_request_url":"https://api.github.com/repos/Heldraug/Coyola/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/Heldraug/Coyola/pulls/comments/33374006"},"html":{"href":"https://github.com/Heldraug/Coyola/pull/22#discussion_r33374006"},"pull_request":{"href":"https://api.github.com/repos/Heldraug/Coyola/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/Heldraug/Coyola/pulls/22","id":38608748,"html_url":"https://github.com/Heldraug/Coyola/pull/22","diff_url":"https://github.com/Heldraug/Coyola/pull/22.diff","patch_url":"https://github.com/Heldraug/Coyola/pull/22.patch","issue_url":"https://api.github.com/repos/Heldraug/Coyola/issues/22","number":22,"state":"open","locked":false,"title":"select preferred and deleted from the alternative list","user":{"login":"jayrore","id":6855553,"avatar_url":"https://avatars.githubusercontent.com/u/6855553?v=3","gravatar_id":"","url":"https://api.github.com/users/jayrore","html_url":"https://github.com/jayrore","followers_url":"https://api.github.com/users/jayrore/followers","following_url":"https://api.github.com/users/jayrore/following{/other_user}","gists_url":"https://api.github.com/users/jayrore/gists{/gist_id}","starred_url":"https://api.github.com/users/jayrore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayrore/subscriptions","organizations_url":"https://api.github.com/users/jayrore/orgs","repos_url":"https://api.github.com/users/jayrore/repos","events_url":"https://api.github.com/users/jayrore/events{/privacy}","received_events_url":"https://api.github.com/users/jayrore/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-26T00:56:02Z","updated_at":"2015-06-26T16:56:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29ff67ff0c4e6b56f3b5c062c8b6f408f916728d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Heldraug/Coyola/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Heldraug/Coyola/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Heldraug/Coyola/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Heldraug/Coyola/issues/22/comments","statuses_url":"https://api.github.com/repos/Heldraug/Coyola/statuses/9b8740c6157ff7af7eac0d03fce0c362e40bfbe8","head":{"label":"Heldraug:event_invite_track_new_Source","ref":"event_invite_track_new_Source","sha":"9b8740c6157ff7af7eac0d03fce0c362e40bfbe8","user":{"login":"Heldraug","id":1566813,"avatar_url":"https://avatars.githubusercontent.com/u/1566813?v=3","gravatar_id":"","url":"https://api.github.com/users/Heldraug","html_url":"https://github.com/Heldraug","followers_url":"https://api.github.com/users/Heldraug/followers","following_url":"https://api.github.com/users/Heldraug/following{/other_user}","gists_url":"https://api.github.com/users/Heldraug/gists{/gist_id}","starred_url":"https://api.github.com/users/Heldraug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heldraug/subscriptions","organizations_url":"https://api.github.com/users/Heldraug/orgs","repos_url":"https://api.github.com/users/Heldraug/repos","events_url":"https://api.github.com/users/Heldraug/events{/privacy}","received_events_url":"https://api.github.com/users/Heldraug/received_events","type":"User","site_admin":false},"repo":{"id":36766971,"name":"Coyola","full_name":"Heldraug/Coyola","owner":{"login":"Heldraug","id":1566813,"avatar_url":"https://avatars.githubusercontent.com/u/1566813?v=3","gravatar_id":"","url":"https://api.github.com/users/Heldraug","html_url":"https://github.com/Heldraug","followers_url":"https://api.github.com/users/Heldraug/followers","following_url":"https://api.github.com/users/Heldraug/following{/other_user}","gists_url":"https://api.github.com/users/Heldraug/gists{/gist_id}","starred_url":"https://api.github.com/users/Heldraug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heldraug/subscriptions","organizations_url":"https://api.github.com/users/Heldraug/orgs","repos_url":"https://api.github.com/users/Heldraug/repos","events_url":"https://api.github.com/users/Heldraug/events{/privacy}","received_events_url":"https://api.github.com/users/Heldraug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Heldraug/Coyola","description":"Coyalla's rebirth","fork":false,"url":"https://api.github.com/repos/Heldraug/Coyola","forks_url":"https://api.github.com/repos/Heldraug/Coyola/forks","keys_url":"https://api.github.com/repos/Heldraug/Coyola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Heldraug/Coyola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Heldraug/Coyola/teams","hooks_url":"https://api.github.com/repos/Heldraug/Coyola/hooks","issue_events_url":"https://api.github.com/repos/Heldraug/Coyola/issues/events{/number}","events_url":"https://api.github.com/repos/Heldraug/Coyola/events","assignees_url":"https://api.github.com/repos/Heldraug/Coyola/assignees{/user}","branches_url":"https://api.github.com/repos/Heldraug/Coyola/branches{/branch}","tags_url":"https://api.github.com/repos/Heldraug/Coyola/tags","blobs_url":"https://api.github.com/repos/Heldraug/Coyola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Heldraug/Coyola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Heldraug/Coyola/git/refs{/sha}","trees_url":"https://api.github.com/repos/Heldraug/Coyola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Heldraug/Coyola/statuses/{sha}","languages_url":"https://api.github.com/repos/Heldraug/Coyola/languages","stargazers_url":"https://api.github.com/repos/Heldraug/Coyola/stargazers","contributors_url":"https://api.github.com/repos/Heldraug/Coyola/contributors","subscribers_url":"https://api.github.com/repos/Heldraug/Coyola/subscribers","subscription_url":"https://api.github.com/repos/Heldraug/Coyola/subscription","commits_url":"https://api.github.com/repos/Heldraug/Coyola/commits{/sha}","git_commits_url":"https://api.github.com/repos/Heldraug/Coyola/git/commits{/sha}","comments_url":"https://api.github.com/repos/Heldraug/Coyola/comments{/number}","issue_comment_url":"https://api.github.com/repos/Heldraug/Coyola/issues/comments{/number}","contents_url":"https://api.github.com/repos/Heldraug/Coyola/contents/{+path}","compare_url":"https://api.github.com/repos/Heldraug/Coyola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Heldraug/Coyola/merges","archive_url":"https://api.github.com/repos/Heldraug/Coyola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Heldraug/Coyola/downloads","issues_url":"https://api.github.com/repos/Heldraug/Coyola/issues{/number}","pulls_url":"https://api.github.com/repos/Heldraug/Coyola/pulls{/number}","milestones_url":"https://api.github.com/repos/Heldraug/Coyola/milestones{/number}","notifications_url":"https://api.github.com/repos/Heldraug/Coyola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Heldraug/Coyola/labels{/name}","releases_url":"https://api.github.com/repos/Heldraug/Coyola/releases{/id}","created_at":"2015-06-02T23:04:35Z","updated_at":"2015-06-23T17:19:34Z","pushed_at":"2015-06-26T15:50:27Z","git_url":"git://github.com/Heldraug/Coyola.git","ssh_url":"git@github.com:Heldraug/Coyola.git","clone_url":"https://github.com/Heldraug/Coyola.git","svn_url":"https://github.com/Heldraug/Coyola","homepage":null,"size":1456,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Heldraug:dev","ref":"dev","sha":"e0b150ad040deafe3dca56fe421cca0af162124d","user":{"login":"Heldraug","id":1566813,"avatar_url":"https://avatars.githubusercontent.com/u/1566813?v=3","gravatar_id":"","url":"https://api.github.com/users/Heldraug","html_url":"https://github.com/Heldraug","followers_url":"https://api.github.com/users/Heldraug/followers","following_url":"https://api.github.com/users/Heldraug/following{/other_user}","gists_url":"https://api.github.com/users/Heldraug/gists{/gist_id}","starred_url":"https://api.github.com/users/Heldraug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heldraug/subscriptions","organizations_url":"https://api.github.com/users/Heldraug/orgs","repos_url":"https://api.github.com/users/Heldraug/repos","events_url":"https://api.github.com/users/Heldraug/events{/privacy}","received_events_url":"https://api.github.com/users/Heldraug/received_events","type":"User","site_admin":false},"repo":{"id":36766971,"name":"Coyola","full_name":"Heldraug/Coyola","owner":{"login":"Heldraug","id":1566813,"avatar_url":"https://avatars.githubusercontent.com/u/1566813?v=3","gravatar_id":"","url":"https://api.github.com/users/Heldraug","html_url":"https://github.com/Heldraug","followers_url":"https://api.github.com/users/Heldraug/followers","following_url":"https://api.github.com/users/Heldraug/following{/other_user}","gists_url":"https://api.github.com/users/Heldraug/gists{/gist_id}","starred_url":"https://api.github.com/users/Heldraug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heldraug/subscriptions","organizations_url":"https://api.github.com/users/Heldraug/orgs","repos_url":"https://api.github.com/users/Heldraug/repos","events_url":"https://api.github.com/users/Heldraug/events{/privacy}","received_events_url":"https://api.github.com/users/Heldraug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Heldraug/Coyola","description":"Coyalla's rebirth","fork":false,"url":"https://api.github.com/repos/Heldraug/Coyola","forks_url":"https://api.github.com/repos/Heldraug/Coyola/forks","keys_url":"https://api.github.com/repos/Heldraug/Coyola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Heldraug/Coyola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Heldraug/Coyola/teams","hooks_url":"https://api.github.com/repos/Heldraug/Coyola/hooks","issue_events_url":"https://api.github.com/repos/Heldraug/Coyola/issues/events{/number}","events_url":"https://api.github.com/repos/Heldraug/Coyola/events","assignees_url":"https://api.github.com/repos/Heldraug/Coyola/assignees{/user}","branches_url":"https://api.github.com/repos/Heldraug/Coyola/branches{/branch}","tags_url":"https://api.github.com/repos/Heldraug/Coyola/tags","blobs_url":"https://api.github.com/repos/Heldraug/Coyola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Heldraug/Coyola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Heldraug/Coyola/git/refs{/sha}","trees_url":"https://api.github.com/repos/Heldraug/Coyola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Heldraug/Coyola/statuses/{sha}","languages_url":"https://api.github.com/repos/Heldraug/Coyola/languages","stargazers_url":"https://api.github.com/repos/Heldraug/Coyola/stargazers","contributors_url":"https://api.github.com/repos/Heldraug/Coyola/contributors","subscribers_url":"https://api.github.com/repos/Heldraug/Coyola/subscribers","subscription_url":"https://api.github.com/repos/Heldraug/Coyola/subscription","commits_url":"https://api.github.com/repos/Heldraug/Coyola/commits{/sha}","git_commits_url":"https://api.github.com/repos/Heldraug/Coyola/git/commits{/sha}","comments_url":"https://api.github.com/repos/Heldraug/Coyola/comments{/number}","issue_comment_url":"https://api.github.com/repos/Heldraug/Coyola/issues/comments{/number}","contents_url":"https://api.github.com/repos/Heldraug/Coyola/contents/{+path}","compare_url":"https://api.github.com/repos/Heldraug/Coyola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Heldraug/Coyola/merges","archive_url":"https://api.github.com/repos/Heldraug/Coyola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Heldraug/Coyola/downloads","issues_url":"https://api.github.com/repos/Heldraug/Coyola/issues{/number}","pulls_url":"https://api.github.com/repos/Heldraug/Coyola/pulls{/number}","milestones_url":"https://api.github.com/repos/Heldraug/Coyola/milestones{/number}","notifications_url":"https://api.github.com/repos/Heldraug/Coyola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Heldraug/Coyola/labels{/name}","releases_url":"https://api.github.com/repos/Heldraug/Coyola/releases{/id}","created_at":"2015-06-02T23:04:35Z","updated_at":"2015-06-23T17:19:34Z","pushed_at":"2015-06-26T15:50:27Z","git_url":"git://github.com/Heldraug/Coyola.git","ssh_url":"git@github.com:Heldraug/Coyola.git","clone_url":"https://github.com/Heldraug/Coyola.git","svn_url":"https://github.com/Heldraug/Coyola","homepage":null,"size":1456,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Heldraug/Coyola/pulls/22"},"html":{"href":"https://github.com/Heldraug/Coyola/pull/22"},"issue":{"href":"https://api.github.com/repos/Heldraug/Coyola/issues/22"},"comments":{"href":"https://api.github.com/repos/Heldraug/Coyola/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Heldraug/Coyola/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Heldraug/Coyola/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Heldraug/Coyola/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Heldraug/Coyola/statuses/9b8740c6157ff7af7eac0d03fce0c362e40bfbe8"}}}}