{"action":"created","comment":{"url":"https://api.github.com/repos/ox-it/wl-reference/pulls/comments/39994464","id":39994464,"diff_hunk":"@@ -102,7 +114,12 @@ $.fn.folderListing = function(options) {\n       }\n \n       li.append(a);\n-      html.append(li);\n+      if(settings.displayRootDirectory && urlRoot === root){","path":"library/src/webapp/editor/ckextraplugins/common-wl/js/folder-listing.js","position":36,"original_position":36,"commit_id":"992e5ba284a7877b36e425bbff406b4091b8a944","original_commit_id":"992e5ba284a7877b36e425bbff406b4091b8a944","user":{"login":"buckett","id":5921,"avatar_url":"https://avatars.githubusercontent.com/u/5921?v=3","gravatar_id":"","url":"https://api.github.com/users/buckett","html_url":"https://github.com/buckett","followers_url":"https://api.github.com/users/buckett/followers","following_url":"https://api.github.com/users/buckett/following{/other_user}","gists_url":"https://api.github.com/users/buckett/gists{/gist_id}","starred_url":"https://api.github.com/users/buckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckett/subscriptions","organizations_url":"https://api.github.com/users/buckett/orgs","repos_url":"https://api.github.com/users/buckett/repos","events_url":"https://api.github.com/users/buckett/events{/privacy}","received_events_url":"https://api.github.com/users/buckett/received_events","type":"User","site_admin":false},"body":"Then here just do `container.append(li)` and it doesn't matter how you got here.","created_at":"2015-09-21T16:50:15Z","updated_at":"2015-09-21T16:50:15Z","html_url":"https://github.com/ox-it/wl-reference/pull/104#discussion_r39994464","pull_request_url":"https://api.github.com/repos/ox-it/wl-reference/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/ox-it/wl-reference/pulls/comments/39994464"},"html":{"href":"https://github.com/ox-it/wl-reference/pull/104#discussion_r39994464"},"pull_request":{"href":"https://api.github.com/repos/ox-it/wl-reference/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/ox-it/wl-reference/pulls/104","id":45563378,"html_url":"https://github.com/ox-it/wl-reference/pull/104","diff_url":"https://github.com/ox-it/wl-reference/pull/104.diff","patch_url":"https://github.com/ox-it/wl-reference/pull/104.patch","issue_url":"https://api.github.com/repos/ox-it/wl-reference/issues/104","number":104,"state":"open","locked":false,"title":"WL-3992 Added option to display root folder for the resources.","user":{"login":"ouit0408","id":13135327,"avatar_url":"https://avatars.githubusercontent.com/u/13135327?v=3","gravatar_id":"","url":"https://api.github.com/users/ouit0408","html_url":"https://github.com/ouit0408","followers_url":"https://api.github.com/users/ouit0408/followers","following_url":"https://api.github.com/users/ouit0408/following{/other_user}","gists_url":"https://api.github.com/users/ouit0408/gists{/gist_id}","starred_url":"https://api.github.com/users/ouit0408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouit0408/subscriptions","organizations_url":"https://api.github.com/users/ouit0408/orgs","repos_url":"https://api.github.com/users/ouit0408/repos","events_url":"https://api.github.com/users/ouit0408/events{/privacy}","received_events_url":"https://api.github.com/users/ouit0408/received_events","type":"User","site_admin":false},"body":"Have added attribute 'displayRootDirectory' which default is set to false\r\nbut when set true will display the root folder.\r\nShould not break Lawrence's code.","created_at":"2015-09-21T15:33:33Z","updated_at":"2015-09-21T16:50:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef54d81594ff1a25814b1d4a74425612b708abaf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ox-it/wl-reference/pulls/104/commits","review_comments_url":"https://api.github.com/repos/ox-it/wl-reference/pulls/104/comments","review_comment_url":"https://api.github.com/repos/ox-it/wl-reference/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ox-it/wl-reference/issues/104/comments","statuses_url":"https://api.github.com/repos/ox-it/wl-reference/statuses/992e5ba284a7877b36e425bbff406b4091b8a944","head":{"label":"ox-it:WL-3992","ref":"WL-3992","sha":"992e5ba284a7877b36e425bbff406b4091b8a944","user":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"repo":{"id":6059091,"name":"wl-reference","full_name":"ox-it/wl-reference","owner":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ox-it/wl-reference","description":null,"fork":false,"url":"https://api.github.com/repos/ox-it/wl-reference","forks_url":"https://api.github.com/repos/ox-it/wl-reference/forks","keys_url":"https://api.github.com/repos/ox-it/wl-reference/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ox-it/wl-reference/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ox-it/wl-reference/teams","hooks_url":"https://api.github.com/repos/ox-it/wl-reference/hooks","issue_events_url":"https://api.github.com/repos/ox-it/wl-reference/issues/events{/number}","events_url":"https://api.github.com/repos/ox-it/wl-reference/events","assignees_url":"https://api.github.com/repos/ox-it/wl-reference/assignees{/user}","branches_url":"https://api.github.com/repos/ox-it/wl-reference/branches{/branch}","tags_url":"https://api.github.com/repos/ox-it/wl-reference/tags","blobs_url":"https://api.github.com/repos/ox-it/wl-reference/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ox-it/wl-reference/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ox-it/wl-reference/git/refs{/sha}","trees_url":"https://api.github.com/repos/ox-it/wl-reference/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ox-it/wl-reference/statuses/{sha}","languages_url":"https://api.github.com/repos/ox-it/wl-reference/languages","stargazers_url":"https://api.github.com/repos/ox-it/wl-reference/stargazers","contributors_url":"https://api.github.com/repos/ox-it/wl-reference/contributors","subscribers_url":"https://api.github.com/repos/ox-it/wl-reference/subscribers","subscription_url":"https://api.github.com/repos/ox-it/wl-reference/subscription","commits_url":"https://api.github.com/repos/ox-it/wl-reference/commits{/sha}","git_commits_url":"https://api.github.com/repos/ox-it/wl-reference/git/commits{/sha}","comments_url":"https://api.github.com/repos/ox-it/wl-reference/comments{/number}","issue_comment_url":"https://api.github.com/repos/ox-it/wl-reference/issues/comments{/number}","contents_url":"https://api.github.com/repos/ox-it/wl-reference/contents/{+path}","compare_url":"https://api.github.com/repos/ox-it/wl-reference/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ox-it/wl-reference/merges","archive_url":"https://api.github.com/repos/ox-it/wl-reference/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ox-it/wl-reference/downloads","issues_url":"https://api.github.com/repos/ox-it/wl-reference/issues{/number}","pulls_url":"https://api.github.com/repos/ox-it/wl-reference/pulls{/number}","milestones_url":"https://api.github.com/repos/ox-it/wl-reference/milestones{/number}","notifications_url":"https://api.github.com/repos/ox-it/wl-reference/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ox-it/wl-reference/labels{/name}","releases_url":"https://api.github.com/repos/ox-it/wl-reference/releases{/id}","created_at":"2012-10-03T11:32:05Z","updated_at":"2015-04-23T13:39:15Z","pushed_at":"2015-09-21T15:49:40Z","git_url":"git://github.com/ox-it/wl-reference.git","ssh_url":"git@github.com:ox-it/wl-reference.git","clone_url":"https://github.com/ox-it/wl-reference.git","svn_url":"https://github.com/ox-it/wl-reference","homepage":null,"size":77364,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"sakai-10.x"}},"base":{"label":"ox-it:sakai-10.x","ref":"sakai-10.x","sha":"8e4192249a3810da3dbcd5a7a9eeb9d679c4351a","user":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"repo":{"id":6059091,"name":"wl-reference","full_name":"ox-it/wl-reference","owner":{"login":"ox-it","id":351950,"avatar_url":"https://avatars.githubusercontent.com/u/351950?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-it","html_url":"https://github.com/ox-it","followers_url":"https://api.github.com/users/ox-it/followers","following_url":"https://api.github.com/users/ox-it/following{/other_user}","gists_url":"https://api.github.com/users/ox-it/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-it/subscriptions","organizations_url":"https://api.github.com/users/ox-it/orgs","repos_url":"https://api.github.com/users/ox-it/repos","events_url":"https://api.github.com/users/ox-it/events{/privacy}","received_events_url":"https://api.github.com/users/ox-it/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ox-it/wl-reference","description":null,"fork":false,"url":"https://api.github.com/repos/ox-it/wl-reference","forks_url":"https://api.github.com/repos/ox-it/wl-reference/forks","keys_url":"https://api.github.com/repos/ox-it/wl-reference/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ox-it/wl-reference/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ox-it/wl-reference/teams","hooks_url":"https://api.github.com/repos/ox-it/wl-reference/hooks","issue_events_url":"https://api.github.com/repos/ox-it/wl-reference/issues/events{/number}","events_url":"https://api.github.com/repos/ox-it/wl-reference/events","assignees_url":"https://api.github.com/repos/ox-it/wl-reference/assignees{/user}","branches_url":"https://api.github.com/repos/ox-it/wl-reference/branches{/branch}","tags_url":"https://api.github.com/repos/ox-it/wl-reference/tags","blobs_url":"https://api.github.com/repos/ox-it/wl-reference/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ox-it/wl-reference/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ox-it/wl-reference/git/refs{/sha}","trees_url":"https://api.github.com/repos/ox-it/wl-reference/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ox-it/wl-reference/statuses/{sha}","languages_url":"https://api.github.com/repos/ox-it/wl-reference/languages","stargazers_url":"https://api.github.com/repos/ox-it/wl-reference/stargazers","contributors_url":"https://api.github.com/repos/ox-it/wl-reference/contributors","subscribers_url":"https://api.github.com/repos/ox-it/wl-reference/subscribers","subscription_url":"https://api.github.com/repos/ox-it/wl-reference/subscription","commits_url":"https://api.github.com/repos/ox-it/wl-reference/commits{/sha}","git_commits_url":"https://api.github.com/repos/ox-it/wl-reference/git/commits{/sha}","comments_url":"https://api.github.com/repos/ox-it/wl-reference/comments{/number}","issue_comment_url":"https://api.github.com/repos/ox-it/wl-reference/issues/comments{/number}","contents_url":"https://api.github.com/repos/ox-it/wl-reference/contents/{+path}","compare_url":"https://api.github.com/repos/ox-it/wl-reference/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ox-it/wl-reference/merges","archive_url":"https://api.github.com/repos/ox-it/wl-reference/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ox-it/wl-reference/downloads","issues_url":"https://api.github.com/repos/ox-it/wl-reference/issues{/number}","pulls_url":"https://api.github.com/repos/ox-it/wl-reference/pulls{/number}","milestones_url":"https://api.github.com/repos/ox-it/wl-reference/milestones{/number}","notifications_url":"https://api.github.com/repos/ox-it/wl-reference/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ox-it/wl-reference/labels{/name}","releases_url":"https://api.github.com/repos/ox-it/wl-reference/releases{/id}","created_at":"2012-10-03T11:32:05Z","updated_at":"2015-04-23T13:39:15Z","pushed_at":"2015-09-21T15:49:40Z","git_url":"git://github.com/ox-it/wl-reference.git","ssh_url":"git@github.com:ox-it/wl-reference.git","clone_url":"https://github.com/ox-it/wl-reference.git","svn_url":"https://github.com/ox-it/wl-reference","homepage":null,"size":77364,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"sakai-10.x"}},"_links":{"self":{"href":"https://api.github.com/repos/ox-it/wl-reference/pulls/104"},"html":{"href":"https://github.com/ox-it/wl-reference/pull/104"},"issue":{"href":"https://api.github.com/repos/ox-it/wl-reference/issues/104"},"comments":{"href":"https://api.github.com/repos/ox-it/wl-reference/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/ox-it/wl-reference/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/ox-it/wl-reference/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ox-it/wl-reference/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/ox-it/wl-reference/statuses/992e5ba284a7877b36e425bbff406b4091b8a944"}}}}