{"action":"created","comment":{"url":"https://api.github.com/repos/zanata/zanata-server/pulls/comments/27841882","id":27841882,"diff_hunk":"@@ -0,0 +1,125 @@\n+<div xmlns=\"http://www.w3.org/1999/xhtml\"\n+  xmlns:h=\"http://java.sun.com/jsf/html\"\n+  xmlns:s=\"http://jboss.org/schema/seam/taglib\"\n+  xmlns:rich=\"http://richfaces.org/rich\"\n+  xmlns:f=\"http://java.sun.com/jsf/core\"\n+  xmlns:a4j=\"http://richfaces.org/a4j\"\n+  xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n+  xmlns:zanata=\"http://java.sun.com/jsf/composite/zanata\"\n+  class=\"modal\" id=\"joinGroupDialog\" tabindex=\"-1\" role=\"dialog\"\n+  aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">\n+\n+  <style type=\"text/css\" scoped=\"scoped\">\n+    #version-list label {\n+      padding-left: 0.40625em;\n+    }\n+  </style>\n+\n+  <script>\n+    function getJoinGroupForm() {\n+      return jQuery('#' + jqSelector('#{rich:clientId('joinGroupForm')}'));\n+    }\n+\n+    function getJoinGroupVersionList() {\n+      return jQuery(getJoinGroupForm()).find('#' + jqSelector('#{rich:clientId('versions')}'));\n+    }\n+\n+    function cancelJoinGroup() {\n+      jQuery('#' + jqSelector('#{rich:clientId('request-join-message')}')).val('');\n+      jQuery(getJoinGroupVersionList()).empty();\n+      jQuery(getJoinGroupForm()).find('#versionGroupAutocomplete-autocomplete__input').val('');\n+      jQuery(getJoinGroupForm()).find('#request-join-group-send-button').removeClass('is-active');\n+      toggleButtons(false);\n+      return false;\n+    }\n+\n+    function toggleButtons(hasSelection) {\n+      if(hasSelection === 'true') {\n+        jQuery(getJoinGroupForm()).find('#request-join-group-send-button').removeAttr('disabled');\n+      } else {\n+        jQuery(getJoinGroupForm()).find('#request-join-group-send-button').attr('disabled', 'disabled');\n+      }\n+    }\n+  </script>\n+\n+  <div class=\"modal__dialog l--constrain-medium\">\n+    <header class=\"modal__header\">\n+      <h2 class=\"modal__title\">\n+        <h:outputFormat\n+          value=\"#{msgs.format('jsf.RequestToAddProjectVersionToGroup', versionGroupJoinAction.groupName)}\">\n+        </h:outputFormat>\n+      </h2>\n+      <button type=\"button\"\n+        class=\"modal__close button--link\"\n+        data-dismiss=\"modal\" onclick=\"cancelJoinGroupEmail();return false;\">\n+        <i class=\"i i--huge i--cancel\"></i>\n+      </button>\n+    </header>\n+\n+    <h:form id=\"joinGroupForm\" styleClass=\"l--push-bottom-0\">\n+      <a4j:jsFunction name=\"sendJoinGroupEmail\" action=\"#{versionGroupJoinAction.send}\"\n+        execute=\"@form\" oncomplete=\"jQuery(getJoinGroupForm()).find('#request-join-group-cancel-button').click()\"/>\n+\n+      <a4j:jsFunction name=\"cancelJoinGroupEmail\" action=\"#{versionGroupJoinAction.clearFormFields()}\"\n+        execute=\"@form\" oncomplete=\"cancelJoinGroup();\"/>\n+\n+      <div class=\"modal__content l--pad-all-1\">\n+        <div class=\"form__item\">\n+          <zanata:autocomplete actionBean=\"#{versionGroupJoinAction}\"\n+            fetchValue=\"#{result.slug}\" id=\"versionGroupAutocomplete\"\n+            render=\"versions\"\n+            displayText=\"#{result.name}\"\n+            minlength=\"1\"\n+            placeholder=\"#{msgs['jsf.dashboard.projects.search.placeholder']}\">\n+            <i class=\"i i--project\"></i> #{result.name}\n+            <span class=\"txt--meta\"> [#{result.slug}]</span>\n+          </zanata:autocomplete>\n+\n+          <s:div id=\"versions\">\n+            <s:fragment rendered=\"#{not empty versionGroupJoinAction.versions}\">\n+              <ul class=\"list--slat\" id=\"version-list\">\n+                <ui:repeat value=\"#{versionGroupJoinAction.versions}\" var=\"version\">\n+                  <li>\n+                    <h:selectBooleanCheckbox value=\"${version.selected}\">\n+                      <a4j:ajax event=\"change\"\n+                        oncomplete=\"toggleButtons('#{versionGroupJoinAction.hasSelectedVersion()}')\"\n+                        execute=\"@this\"/>\n+                    </h:selectBooleanCheckbox>\n+                    <label>#{version.iterationSlug}</label>\n+                  </li>\n+                </ui:repeat>\n+              </ul>\n+            </s:fragment>\n+          </s:div>\n+        </div>\n+\n+        <s:decorate id=\"messageField\" template=\"../field.xhtml\">","path":"zanata-war/src/main/webapp/WEB-INF/layout/version-group/request_join_modal.xhtml","position":96,"original_position":96,"commit_id":"2d600e01471f767556263323f648389b70ffb118","original_commit_id":"2d600e01471f767556263323f648389b70ffb118","user":{"login":"davidmason","id":482026,"avatar_url":"https://avatars.githubusercontent.com/u/482026?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmason","html_url":"https://github.com/davidmason","followers_url":"https://api.github.com/users/davidmason/followers","following_url":"https://api.github.com/users/davidmason/following{/other_user}","gists_url":"https://api.github.com/users/davidmason/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmason/subscriptions","organizations_url":"https://api.github.com/users/davidmason/orgs","repos_url":"https://api.github.com/users/davidmason/repos","events_url":"https://api.github.com/users/davidmason/events{/privacy}","received_events_url":"https://api.github.com/users/davidmason/received_events","type":"User","site_admin":false},"body":"- [ ] can use absolute path here","created_at":"2015-04-06T23:57:40Z","updated_at":"2015-04-06T23:57:40Z","html_url":"https://github.com/zanata/zanata-server/pull/759#discussion_r27841882","pull_request_url":"https://api.github.com/repos/zanata/zanata-server/pulls/759","_links":{"self":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/comments/27841882"},"html":{"href":"https://github.com/zanata/zanata-server/pull/759#discussion_r27841882"},"pull_request":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/759"}}},"pull_request":{"url":"https://api.github.com/repos/zanata/zanata-server/pulls/759","id":32290927,"html_url":"https://github.com/zanata/zanata-server/pull/759","diff_url":"https://github.com/zanata/zanata-server/pull/759.diff","patch_url":"https://github.com/zanata/zanata-server/pull/759.patch","issue_url":"https://api.github.com/repos/zanata/zanata-server/issues/759","number":759,"state":"open","locked":false,"title":"Update join language page","user":{"login":"aeng","id":766762,"avatar_url":"https://avatars.githubusercontent.com/u/766762?v=3","gravatar_id":"","url":"https://api.github.com/users/aeng","html_url":"https://github.com/aeng","followers_url":"https://api.github.com/users/aeng/followers","following_url":"https://api.github.com/users/aeng/following{/other_user}","gists_url":"https://api.github.com/users/aeng/gists{/gist_id}","starred_url":"https://api.github.com/users/aeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeng/subscriptions","organizations_url":"https://api.github.com/users/aeng/orgs","repos_url":"https://api.github.com/users/aeng/repos","events_url":"https://api.github.com/users/aeng/events{/privacy}","received_events_url":"https://api.github.com/users/aeng/received_events","type":"User","site_admin":false},"body":"https://bugzilla.redhat.com/show_bug.cgi?id=1207426\r\n\r\nChanges on all \"contact\" dialog\r\n- contact admin\r\n- contact language coordinator\r\n\r\nUpdate on request to join dialog\r\n- request to join group\r\n- request to join language","created_at":"2015-03-31T04:47:57Z","updated_at":"2015-04-06T23:57:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb7c84ea3d477e559109e594bec1368e6c22de39","assignee":{"login":"davidmason","id":482026,"avatar_url":"https://avatars.githubusercontent.com/u/482026?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmason","html_url":"https://github.com/davidmason","followers_url":"https://api.github.com/users/davidmason/followers","following_url":"https://api.github.com/users/davidmason/following{/other_user}","gists_url":"https://api.github.com/users/davidmason/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmason/subscriptions","organizations_url":"https://api.github.com/users/davidmason/orgs","repos_url":"https://api.github.com/users/davidmason/repos","events_url":"https://api.github.com/users/davidmason/events{/privacy}","received_events_url":"https://api.github.com/users/davidmason/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zanata/zanata-server/pulls/759/commits","review_comments_url":"https://api.github.com/repos/zanata/zanata-server/pulls/759/comments","review_comment_url":"https://api.github.com/repos/zanata/zanata-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zanata/zanata-server/issues/759/comments","statuses_url":"https://api.github.com/repos/zanata/zanata-server/statuses/2d600e01471f767556263323f648389b70ffb118","head":{"label":"zanata:update-join-language-page","ref":"update-join-language-page","sha":"2d600e01471f767556263323f648389b70ffb118","user":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"repo":{"id":1461609,"name":"zanata-server","full_name":"zanata/zanata-server","owner":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zanata/zanata-server","description":"Zanata is a web-based system for translators to translate documentation and software online using a web browser.","fork":false,"url":"https://api.github.com/repos/zanata/zanata-server","forks_url":"https://api.github.com/repos/zanata/zanata-server/forks","keys_url":"https://api.github.com/repos/zanata/zanata-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanata/zanata-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanata/zanata-server/teams","hooks_url":"https://api.github.com/repos/zanata/zanata-server/hooks","issue_events_url":"https://api.github.com/repos/zanata/zanata-server/issues/events{/number}","events_url":"https://api.github.com/repos/zanata/zanata-server/events","assignees_url":"https://api.github.com/repos/zanata/zanata-server/assignees{/user}","branches_url":"https://api.github.com/repos/zanata/zanata-server/branches{/branch}","tags_url":"https://api.github.com/repos/zanata/zanata-server/tags","blobs_url":"https://api.github.com/repos/zanata/zanata-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanata/zanata-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanata/zanata-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanata/zanata-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanata/zanata-server/statuses/{sha}","languages_url":"https://api.github.com/repos/zanata/zanata-server/languages","stargazers_url":"https://api.github.com/repos/zanata/zanata-server/stargazers","contributors_url":"https://api.github.com/repos/zanata/zanata-server/contributors","subscribers_url":"https://api.github.com/repos/zanata/zanata-server/subscribers","subscription_url":"https://api.github.com/repos/zanata/zanata-server/subscription","commits_url":"https://api.github.com/repos/zanata/zanata-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanata/zanata-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanata/zanata-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanata/zanata-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanata/zanata-server/contents/{+path}","compare_url":"https://api.github.com/repos/zanata/zanata-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanata/zanata-server/merges","archive_url":"https://api.github.com/repos/zanata/zanata-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanata/zanata-server/downloads","issues_url":"https://api.github.com/repos/zanata/zanata-server/issues{/number}","pulls_url":"https://api.github.com/repos/zanata/zanata-server/pulls{/number}","milestones_url":"https://api.github.com/repos/zanata/zanata-server/milestones{/number}","notifications_url":"https://api.github.com/repos/zanata/zanata-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanata/zanata-server/labels{/name}","releases_url":"https://api.github.com/repos/zanata/zanata-server/releases{/id}","created_at":"2011-03-10T00:24:47Z","updated_at":"2015-04-06T22:57:41Z","pushed_at":"2015-04-06T23:29:17Z","git_url":"git://github.com/zanata/zanata-server.git","ssh_url":"git@github.com:zanata/zanata-server.git","clone_url":"https://github.com/zanata/zanata-server.git","svn_url":"https://github.com/zanata/zanata-server","homepage":"http://zanata.org","size":232043,"stargazers_count":93,"watchers_count":93,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":13,"forks":24,"open_issues":13,"watchers":93,"default_branch":"master"}},"base":{"label":"zanata:integration/master","ref":"integration/master","sha":"307b8908e53676bb5b164bd8c1d88f0acc56a631","user":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"repo":{"id":1461609,"name":"zanata-server","full_name":"zanata/zanata-server","owner":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zanata/zanata-server","description":"Zanata is a web-based system for translators to translate documentation and software online using a web browser.","fork":false,"url":"https://api.github.com/repos/zanata/zanata-server","forks_url":"https://api.github.com/repos/zanata/zanata-server/forks","keys_url":"https://api.github.com/repos/zanata/zanata-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanata/zanata-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanata/zanata-server/teams","hooks_url":"https://api.github.com/repos/zanata/zanata-server/hooks","issue_events_url":"https://api.github.com/repos/zanata/zanata-server/issues/events{/number}","events_url":"https://api.github.com/repos/zanata/zanata-server/events","assignees_url":"https://api.github.com/repos/zanata/zanata-server/assignees{/user}","branches_url":"https://api.github.com/repos/zanata/zanata-server/branches{/branch}","tags_url":"https://api.github.com/repos/zanata/zanata-server/tags","blobs_url":"https://api.github.com/repos/zanata/zanata-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanata/zanata-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanata/zanata-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanata/zanata-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanata/zanata-server/statuses/{sha}","languages_url":"https://api.github.com/repos/zanata/zanata-server/languages","stargazers_url":"https://api.github.com/repos/zanata/zanata-server/stargazers","contributors_url":"https://api.github.com/repos/zanata/zanata-server/contributors","subscribers_url":"https://api.github.com/repos/zanata/zanata-server/subscribers","subscription_url":"https://api.github.com/repos/zanata/zanata-server/subscription","commits_url":"https://api.github.com/repos/zanata/zanata-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanata/zanata-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanata/zanata-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanata/zanata-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanata/zanata-server/contents/{+path}","compare_url":"https://api.github.com/repos/zanata/zanata-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanata/zanata-server/merges","archive_url":"https://api.github.com/repos/zanata/zanata-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanata/zanata-server/downloads","issues_url":"https://api.github.com/repos/zanata/zanata-server/issues{/number}","pulls_url":"https://api.github.com/repos/zanata/zanata-server/pulls{/number}","milestones_url":"https://api.github.com/repos/zanata/zanata-server/milestones{/number}","notifications_url":"https://api.github.com/repos/zanata/zanata-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanata/zanata-server/labels{/name}","releases_url":"https://api.github.com/repos/zanata/zanata-server/releases{/id}","created_at":"2011-03-10T00:24:47Z","updated_at":"2015-04-06T22:57:41Z","pushed_at":"2015-04-06T23:29:17Z","git_url":"git://github.com/zanata/zanata-server.git","ssh_url":"git@github.com:zanata/zanata-server.git","clone_url":"https://github.com/zanata/zanata-server.git","svn_url":"https://github.com/zanata/zanata-server","homepage":"http://zanata.org","size":232043,"stargazers_count":93,"watchers_count":93,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":13,"forks":24,"open_issues":13,"watchers":93,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/759"},"html":{"href":"https://github.com/zanata/zanata-server/pull/759"},"issue":{"href":"https://api.github.com/repos/zanata/zanata-server/issues/759"},"comments":{"href":"https://api.github.com/repos/zanata/zanata-server/issues/759/comments"},"review_comments":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/759/comments"},"review_comment":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/759/commits"},"statuses":{"href":"https://api.github.com/repos/zanata/zanata-server/statuses/2d600e01471f767556263323f648389b70ffb118"}}}}