{"action":"created","comment":{"url":"https://api.github.com/repos/silexlabs/Silex/pulls/comments/110730907","pull_request_review_id":31921549,"id":110730907,"diff_hunk":"@@ -1212,3 +1220,44 @@ silex.view.Stage.prototype.moveElements = function(elements, offsetX, offsetY) {\n silex.view.Stage.prototype.isMobileMode = function() {\n   return goog.dom.classlist.contains(document.body, 'mobile-mode');\n };\n+\n+silex.view.Stage.prototype.handleRightClick = function(x, y) {\n+\n+  if(document.getElementById( 'powDiv' )!=null){\n+    var el = document.getElementById( 'powDiv' );\n+    el.parentNode.removeChild( el );  \n+  }\n+\n+  var powDiv=goog.dom.createElement('div');\n+  powDiv.id='powDiv';\n+  \n+  var leftPowDiv=goog.dom.createElement('div');\n+  leftPowDiv.id='leftPowDiv';\n+\n+  var imgLeftPowDiv=goog.dom.createElement('img');\n+  imgLeftPowDiv.id='imgLeftPowDiv';\n+  imgLeftPowDiv.setAttribute('src', '../assets/logo-silex.png');\n+\n+\n+  var rightPowA=goog.dom.createElement('a');\n+  rightPowA.id='rightPowA';\n+  rightPowA.setAttribute('href', 'http://www.silex.me');\n+  rightPowA.setAttribute('target', '_blank');\n+  rightPowA.innerHTML='Powered by Silex';\n+\n+  var myContextHeight=goog.dom.getElementByClass(silex.view.ContextMenu.CLASS_NAME).offsetHeight;\n+  var myMenuWidth=goog.dom.getElementByClass('menu-container').offsetWidth;\n+\n+  powDiv.style.left = (x+myMenuWidth)+'px';\n+  powDiv.style.top = (y+myContextHeight)+'px';\n+  \n+  document.body.appendChild(powDiv);\n+  document.getElementById('powDiv').appendChild(leftPowDiv);\n+  document.getElementById('leftPowDiv').appendChild(imgLeftPowDiv);\n+  document.getElementById('powDiv').appendChild(rightPowA);\n+\n+  setTimeout(function(){ ","path":"src/js/view/stage.js","position":55,"original_position":55,"commit_id":"467762381db4eb0ba667b38e4e5c6fe9d8a60cda","original_commit_id":"467762381db4eb0ba667b38e4e5c6fe9d8a60cda","user":{"login":"lexoyo","id":715377,"avatar_url":"https://avatars3.githubusercontent.com/u/715377?v=3","gravatar_id":"","url":"https://api.github.com/users/lexoyo","html_url":"https://github.com/lexoyo","followers_url":"https://api.github.com/users/lexoyo/followers","following_url":"https://api.github.com/users/lexoyo/following{/other_user}","gists_url":"https://api.github.com/users/lexoyo/gists{/gist_id}","starred_url":"https://api.github.com/users/lexoyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexoyo/subscriptions","organizations_url":"https://api.github.com/users/lexoyo/orgs","repos_url":"https://api.github.com/users/lexoyo/repos","events_url":"https://api.github.com/users/lexoyo/events{/privacy}","received_events_url":"https://api.github.com/users/lexoyo/received_events","type":"User","site_admin":false},"body":"please use the arrow function here (`setTimeout(() => { `)","created_at":"2017-04-10T18:36:44Z","updated_at":"2017-04-10T18:38:10Z","html_url":"https://github.com/silexlabs/Silex/pull/583#discussion_r110730907","pull_request_url":"https://api.github.com/repos/silexlabs/Silex/pulls/583","_links":{"self":{"href":"https://api.github.com/repos/silexlabs/Silex/pulls/comments/110730907"},"html":{"href":"https://github.com/silexlabs/Silex/pull/583#discussion_r110730907"},"pull_request":{"href":"https://api.github.com/repos/silexlabs/Silex/pulls/583"}}},"pull_request":{"url":"https://api.github.com/repos/silexlabs/Silex/pulls/583","id":115157370,"html_url":"https://github.com/silexlabs/Silex/pull/583","diff_url":"https://github.com/silexlabs/Silex/pull/583.diff","patch_url":"https://github.com/silexlabs/Silex/pull/583.patch","issue_url":"https://api.github.com/repos/silexlabs/Silex/issues/583","number":583,"state":"open","locked":false,"title":"handle the right click","user":{"login":"tariqbenezza","id":4911564,"avatar_url":"https://avatars3.githubusercontent.com/u/4911564?v=3","gravatar_id":"","url":"https://api.github.com/users/tariqbenezza","html_url":"https://github.com/tariqbenezza","followers_url":"https://api.github.com/users/tariqbenezza/followers","following_url":"https://api.github.com/users/tariqbenezza/following{/other_user}","gists_url":"https://api.github.com/users/tariqbenezza/gists{/gist_id}","starred_url":"https://api.github.com/users/tariqbenezza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariqbenezza/subscriptions","organizations_url":"https://api.github.com/users/tariqbenezza/orgs","repos_url":"https://api.github.com/users/tariqbenezza/repos","events_url":"https://api.github.com/users/tariqbenezza/events{/privacy}","received_events_url":"https://api.github.com/users/tariqbenezza/received_events","type":"User","site_admin":false},"body":"Too many people using Silex tried to right click on the workspace.\r\n\r\nI propose to help them by handle this right click and display a message :\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4911564/24875358/0e0027e6-1e28-11e7-89e0-664812d4fca8.png)\r\n\r\nTell me if it's Ok for you ?\r\n\r\nThank you in advance","created_at":"2017-04-10T17:58:41Z","updated_at":"2017-04-10T18:38:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ace57d5cfde2213c147e89e9ad913835b90fe73d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/silexlabs/Silex/pulls/583/commits","review_comments_url":"https://api.github.com/repos/silexlabs/Silex/pulls/583/comments","review_comment_url":"https://api.github.com/repos/silexlabs/Silex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silexlabs/Silex/issues/583/comments","statuses_url":"https://api.github.com/repos/silexlabs/Silex/statuses/467762381db4eb0ba667b38e4e5c6fe9d8a60cda","head":{"label":"tariqbenezza:new_Right_Click","ref":"new_Right_Click","sha":"467762381db4eb0ba667b38e4e5c6fe9d8a60cda","user":{"login":"tariqbenezza","id":4911564,"avatar_url":"https://avatars3.githubusercontent.com/u/4911564?v=3","gravatar_id":"","url":"https://api.github.com/users/tariqbenezza","html_url":"https://github.com/tariqbenezza","followers_url":"https://api.github.com/users/tariqbenezza/followers","following_url":"https://api.github.com/users/tariqbenezza/following{/other_user}","gists_url":"https://api.github.com/users/tariqbenezza/gists{/gist_id}","starred_url":"https://api.github.com/users/tariqbenezza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariqbenezza/subscriptions","organizations_url":"https://api.github.com/users/tariqbenezza/orgs","repos_url":"https://api.github.com/users/tariqbenezza/repos","events_url":"https://api.github.com/users/tariqbenezza/events{/privacy}","received_events_url":"https://api.github.com/users/tariqbenezza/received_events","type":"User","site_admin":false},"repo":{"id":85343266,"name":"Silex","full_name":"tariqbenezza/Silex","owner":{"login":"tariqbenezza","id":4911564,"avatar_url":"https://avatars3.githubusercontent.com/u/4911564?v=3","gravatar_id":"","url":"https://api.github.com/users/tariqbenezza","html_url":"https://github.com/tariqbenezza","followers_url":"https://api.github.com/users/tariqbenezza/followers","following_url":"https://api.github.com/users/tariqbenezza/following{/other_user}","gists_url":"https://api.github.com/users/tariqbenezza/gists{/gist_id}","starred_url":"https://api.github.com/users/tariqbenezza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tariqbenezza/subscriptions","organizations_url":"https://api.github.com/users/tariqbenezza/orgs","repos_url":"https://api.github.com/users/tariqbenezza/repos","events_url":"https://api.github.com/users/tariqbenezza/events{/privacy}","received_events_url":"https://api.github.com/users/tariqbenezza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tariqbenezza/Silex","description":"Silex is a static website builder in the cloud. ","fork":true,"url":"https://api.github.com/repos/tariqbenezza/Silex","forks_url":"https://api.github.com/repos/tariqbenezza/Silex/forks","keys_url":"https://api.github.com/repos/tariqbenezza/Silex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tariqbenezza/Silex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tariqbenezza/Silex/teams","hooks_url":"https://api.github.com/repos/tariqbenezza/Silex/hooks","issue_events_url":"https://api.github.com/repos/tariqbenezza/Silex/issues/events{/number}","events_url":"https://api.github.com/repos/tariqbenezza/Silex/events","assignees_url":"https://api.github.com/repos/tariqbenezza/Silex/assignees{/user}","branches_url":"https://api.github.com/repos/tariqbenezza/Silex/branches{/branch}","tags_url":"https://api.github.com/repos/tariqbenezza/Silex/tags","blobs_url":"https://api.github.com/repos/tariqbenezza/Silex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tariqbenezza/Silex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tariqbenezza/Silex/git/refs{/sha}","trees_url":"https://api.github.com/repos/tariqbenezza/Silex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tariqbenezza/Silex/statuses/{sha}","languages_url":"https://api.github.com/repos/tariqbenezza/Silex/languages","stargazers_url":"https://api.github.com/repos/tariqbenezza/Silex/stargazers","contributors_url":"https://api.github.com/repos/tariqbenezza/Silex/contributors","subscribers_url":"https://api.github.com/repos/tariqbenezza/Silex/subscribers","subscription_url":"https://api.github.com/repos/tariqbenezza/Silex/subscription","commits_url":"https://api.github.com/repos/tariqbenezza/Silex/commits{/sha}","git_commits_url":"https://api.github.com/repos/tariqbenezza/Silex/git/commits{/sha}","comments_url":"https://api.github.com/repos/tariqbenezza/Silex/comments{/number}","issue_comment_url":"https://api.github.com/repos/tariqbenezza/Silex/issues/comments{/number}","contents_url":"https://api.github.com/repos/tariqbenezza/Silex/contents/{+path}","compare_url":"https://api.github.com/repos/tariqbenezza/Silex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tariqbenezza/Silex/merges","archive_url":"https://api.github.com/repos/tariqbenezza/Silex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tariqbenezza/Silex/downloads","issues_url":"https://api.github.com/repos/tariqbenezza/Silex/issues{/number}","pulls_url":"https://api.github.com/repos/tariqbenezza/Silex/pulls{/number}","milestones_url":"https://api.github.com/repos/tariqbenezza/Silex/milestones{/number}","notifications_url":"https://api.github.com/repos/tariqbenezza/Silex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tariqbenezza/Silex/labels{/name}","releases_url":"https://api.github.com/repos/tariqbenezza/Silex/releases{/id}","deployments_url":"https://api.github.com/repos/tariqbenezza/Silex/deployments","created_at":"2017-03-17T18:30:53Z","updated_at":"2017-03-17T18:30:55Z","pushed_at":"2017-04-10T17:56:55Z","git_url":"git://github.com/tariqbenezza/Silex.git","ssh_url":"git@github.com:tariqbenezza/Silex.git","clone_url":"https://github.com/tariqbenezza/Silex.git","svn_url":"https://github.com/tariqbenezza/Silex","homepage":"http://www.silex.me","size":50316,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"silexlabs:develop","ref":"develop","sha":"c6efc5f637a87a1cbfe3bf0dca5277e4ff997d46","user":{"login":"silexlabs","id":803706,"avatar_url":"https://avatars1.githubusercontent.com/u/803706?v=3","gravatar_id":"","url":"https://api.github.com/users/silexlabs","html_url":"https://github.com/silexlabs","followers_url":"https://api.github.com/users/silexlabs/followers","following_url":"https://api.github.com/users/silexlabs/following{/other_user}","gists_url":"https://api.github.com/users/silexlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/silexlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silexlabs/subscriptions","organizations_url":"https://api.github.com/users/silexlabs/orgs","repos_url":"https://api.github.com/users/silexlabs/repos","events_url":"https://api.github.com/users/silexlabs/events{/privacy}","received_events_url":"https://api.github.com/users/silexlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":13190625,"name":"Silex","full_name":"silexlabs/Silex","owner":{"login":"silexlabs","id":803706,"avatar_url":"https://avatars1.githubusercontent.com/u/803706?v=3","gravatar_id":"","url":"https://api.github.com/users/silexlabs","html_url":"https://github.com/silexlabs","followers_url":"https://api.github.com/users/silexlabs/followers","following_url":"https://api.github.com/users/silexlabs/following{/other_user}","gists_url":"https://api.github.com/users/silexlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/silexlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silexlabs/subscriptions","organizations_url":"https://api.github.com/users/silexlabs/orgs","repos_url":"https://api.github.com/users/silexlabs/repos","events_url":"https://api.github.com/users/silexlabs/events{/privacy}","received_events_url":"https://api.github.com/users/silexlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silexlabs/Silex","description":"Silex is a static website builder in the cloud. ","fork":false,"url":"https://api.github.com/repos/silexlabs/Silex","forks_url":"https://api.github.com/repos/silexlabs/Silex/forks","keys_url":"https://api.github.com/repos/silexlabs/Silex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silexlabs/Silex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silexlabs/Silex/teams","hooks_url":"https://api.github.com/repos/silexlabs/Silex/hooks","issue_events_url":"https://api.github.com/repos/silexlabs/Silex/issues/events{/number}","events_url":"https://api.github.com/repos/silexlabs/Silex/events","assignees_url":"https://api.github.com/repos/silexlabs/Silex/assignees{/user}","branches_url":"https://api.github.com/repos/silexlabs/Silex/branches{/branch}","tags_url":"https://api.github.com/repos/silexlabs/Silex/tags","blobs_url":"https://api.github.com/repos/silexlabs/Silex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silexlabs/Silex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silexlabs/Silex/git/refs{/sha}","trees_url":"https://api.github.com/repos/silexlabs/Silex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silexlabs/Silex/statuses/{sha}","languages_url":"https://api.github.com/repos/silexlabs/Silex/languages","stargazers_url":"https://api.github.com/repos/silexlabs/Silex/stargazers","contributors_url":"https://api.github.com/repos/silexlabs/Silex/contributors","subscribers_url":"https://api.github.com/repos/silexlabs/Silex/subscribers","subscription_url":"https://api.github.com/repos/silexlabs/Silex/subscription","commits_url":"https://api.github.com/repos/silexlabs/Silex/commits{/sha}","git_commits_url":"https://api.github.com/repos/silexlabs/Silex/git/commits{/sha}","comments_url":"https://api.github.com/repos/silexlabs/Silex/comments{/number}","issue_comment_url":"https://api.github.com/repos/silexlabs/Silex/issues/comments{/number}","contents_url":"https://api.github.com/repos/silexlabs/Silex/contents/{+path}","compare_url":"https://api.github.com/repos/silexlabs/Silex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silexlabs/Silex/merges","archive_url":"https://api.github.com/repos/silexlabs/Silex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silexlabs/Silex/downloads","issues_url":"https://api.github.com/repos/silexlabs/Silex/issues{/number}","pulls_url":"https://api.github.com/repos/silexlabs/Silex/pulls{/number}","milestones_url":"https://api.github.com/repos/silexlabs/Silex/milestones{/number}","notifications_url":"https://api.github.com/repos/silexlabs/Silex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silexlabs/Silex/labels{/name}","releases_url":"https://api.github.com/repos/silexlabs/Silex/releases{/id}","deployments_url":"https://api.github.com/repos/silexlabs/Silex/deployments","created_at":"2013-09-29T10:22:10Z","updated_at":"2017-04-10T15:23:40Z","pushed_at":"2017-04-10T17:58:42Z","git_url":"git://github.com/silexlabs/Silex.git","ssh_url":"git@github.com:silexlabs/Silex.git","clone_url":"https://github.com/silexlabs/Silex.git","svn_url":"https://github.com/silexlabs/Silex","homepage":"http://www.silex.me","size":50300,"stargazers_count":338,"watchers_count":338,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":168,"mirror_url":null,"open_issues_count":191,"forks":168,"open_issues":191,"watchers":338,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/silexlabs/Silex/pulls/583"},"html":{"href":"https://github.com/silexlabs/Silex/pull/583"},"issue":{"href":"https://api.github.com/repos/silexlabs/Silex/issues/583"},"comments":{"href":"https://api.github.com/repos/silexlabs/Silex/issues/583/comments"},"review_comments":{"href":"https://api.github.com/repos/silexlabs/Silex/pulls/583/comments"},"review_comment":{"href":"https://api.github.com/repos/silexlabs/Silex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silexlabs/Silex/pulls/583/commits"},"statuses":{"href":"https://api.github.com/repos/silexlabs/Silex/statuses/467762381db4eb0ba667b38e4e5c6fe9d8a60cda"}}}}
{"actor":{"display_login":"lexoyo"}}