{"action":"opened","number":8021,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8021","id":46840900,"html_url":"https://github.com/joomla/joomla-cms/pull/8021","diff_url":"https://github.com/joomla/joomla-cms/pull/8021.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/8021.patch","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8021","number":8021,"state":"open","locked":false,"title":"Fix a javascript error in com_media","user":{"login":"dgt41","id":3889375,"avatar_url":"https://avatars.githubusercontent.com/u/3889375?v=3","gravatar_id":"","url":"https://api.github.com/users/dgt41","html_url":"https://github.com/dgt41","followers_url":"https://api.github.com/users/dgt41/followers","following_url":"https://api.github.com/users/dgt41/following{/other_user}","gists_url":"https://api.github.com/users/dgt41/gists{/gist_id}","starred_url":"https://api.github.com/users/dgt41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgt41/subscriptions","organizations_url":"https://api.github.com/users/dgt41/orgs","repos_url":"https://api.github.com/users/dgt41/repos","events_url":"https://api.github.com/users/dgt41/events{/privacy}","received_events_url":"https://api.github.com/users/dgt41/received_events","type":"User","site_admin":false},"body":"#### How to replicate the error:\r\nMake sure you are using the latest staging\r\nCreate an article\r\nUse the XTD button to insert an image and try to use the dropdown for the folders navigation\r\nNot cool\r\n![screenshot 2015-10-06 00 47 37](https://cloud.githubusercontent.com/assets/3889375/10294761/ef0a8d8e-6bc4-11e5-9340-1a920747d572.png)\r\n\r\n#### Testing \r\nApply this patch with patch tester and follow the above instructions\r\nmake sure that dropdown and the up folder buttons are working correctly and observe that there are no errors logged in your browsers console\r\n\r\n#### What is changed?\r\nThe code `test(/\\bchzn-done\\b/)` is replaced by `indexOf('chzn-done')`.\r\nThe test() method tests for a match in a string and is using regular expression to achieve that. The indexOf() method will return true if the string is found without the regular expression. And is vanilla javascript as well.","created_at":"2015-10-05T22:12:20Z","updated_at":"2015-10-05T22:12:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8021/commits","review_comments_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8021/comments","review_comment_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8021/comments","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/5936757746d2722b33bab74c9b5199b729bd35b5","head":{"label":"dgt41:__media_js_error","ref":"__media_js_error","sha":"5936757746d2722b33bab74c9b5199b729bd35b5","user":{"login":"dgt41","id":3889375,"avatar_url":"https://avatars.githubusercontent.com/u/3889375?v=3","gravatar_id":"","url":"https://api.github.com/users/dgt41","html_url":"https://github.com/dgt41","followers_url":"https://api.github.com/users/dgt41/followers","following_url":"https://api.github.com/users/dgt41/following{/other_user}","gists_url":"https://api.github.com/users/dgt41/gists{/gist_id}","starred_url":"https://api.github.com/users/dgt41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgt41/subscriptions","organizations_url":"https://api.github.com/users/dgt41/orgs","repos_url":"https://api.github.com/users/dgt41/repos","events_url":"https://api.github.com/users/dgt41/events{/privacy}","received_events_url":"https://api.github.com/users/dgt41/received_events","type":"User","site_admin":false},"repo":{"id":17825580,"name":"joomla-cms","full_name":"dgt41/joomla-cms","owner":{"login":"dgt41","id":3889375,"avatar_url":"https://avatars.githubusercontent.com/u/3889375?v=3","gravatar_id":"","url":"https://api.github.com/users/dgt41","html_url":"https://github.com/dgt41","followers_url":"https://api.github.com/users/dgt41/followers","following_url":"https://api.github.com/users/dgt41/following{/other_user}","gists_url":"https://api.github.com/users/dgt41/gists{/gist_id}","starred_url":"https://api.github.com/users/dgt41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgt41/subscriptions","organizations_url":"https://api.github.com/users/dgt41/orgs","repos_url":"https://api.github.com/users/dgt41/repos","events_url":"https://api.github.com/users/dgt41/events{/privacy}","received_events_url":"https://api.github.com/users/dgt41/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgt41/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/dgt41/joomla-cms","forks_url":"https://api.github.com/repos/dgt41/joomla-cms/forks","keys_url":"https://api.github.com/repos/dgt41/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgt41/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgt41/joomla-cms/teams","hooks_url":"https://api.github.com/repos/dgt41/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/dgt41/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/dgt41/joomla-cms/events","assignees_url":"https://api.github.com/repos/dgt41/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/dgt41/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/dgt41/joomla-cms/tags","blobs_url":"https://api.github.com/repos/dgt41/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgt41/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgt41/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgt41/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgt41/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/dgt41/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/dgt41/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/dgt41/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/dgt41/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/dgt41/joomla-cms/subscription","commits_url":"https://api.github.com/repos/dgt41/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgt41/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgt41/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgt41/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgt41/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/dgt41/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgt41/joomla-cms/merges","archive_url":"https://api.github.com/repos/dgt41/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgt41/joomla-cms/downloads","issues_url":"https://api.github.com/repos/dgt41/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/dgt41/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/dgt41/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/dgt41/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgt41/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/dgt41/joomla-cms/releases{/id}","created_at":"2014-03-17T11:18:00Z","updated_at":"2014-09-07T15:23:48Z","pushed_at":"2015-10-05T21:52:11Z","git_url":"git://github.com/dgt41/joomla-cms.git","ssh_url":"git@github.com:dgt41/joomla-cms.git","clone_url":"https://github.com/dgt41/joomla-cms.git","svn_url":"https://github.com/dgt41/joomla-cms","homepage":"http://joomla.org","size":137312,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"staging"}},"base":{"label":"joomla:staging","ref":"staging","sha":"f9f8111b055ffadd7d6106cec5aece69d676bc74","user":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"repo":{"id":2464908,"name":"joomla-cms","full_name":"joomla/joomla-cms","owner":{"login":"joomla","id":751633,"avatar_url":"https://avatars.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla/joomla-cms","description":"Home of the Joomla! Content Management System","fork":false,"url":"https://api.github.com/repos/joomla/joomla-cms","forks_url":"https://api.github.com/repos/joomla/joomla-cms/forks","keys_url":"https://api.github.com/repos/joomla/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla/joomla-cms/teams","hooks_url":"https://api.github.com/repos/joomla/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/joomla/joomla-cms/events","assignees_url":"https://api.github.com/repos/joomla/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/joomla/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/joomla/joomla-cms/tags","blobs_url":"https://api.github.com/repos/joomla/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/joomla/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/joomla/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/joomla/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/joomla/joomla-cms/subscription","commits_url":"https://api.github.com/repos/joomla/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/joomla/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla/joomla-cms/merges","archive_url":"https://api.github.com/repos/joomla/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla/joomla-cms/downloads","issues_url":"https://api.github.com/repos/joomla/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/joomla/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/joomla/joomla-cms/releases{/id}","created_at":"2011-09-27T02:07:38Z","updated_at":"2015-10-04T11:56:09Z","pushed_at":"2015-10-05T21:37:00Z","git_url":"git://github.com/joomla/joomla-cms.git","ssh_url":"git@github.com:joomla/joomla-cms.git","clone_url":"https://github.com/joomla/joomla-cms.git","svn_url":"https://github.com/joomla/joomla-cms","homepage":"https://www.joomla.org","size":343235,"stargazers_count":1668,"watchers_count":1668,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1900,"mirror_url":null,"open_issues_count":593,"forks":1900,"open_issues":593,"watchers":1668,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/8021"},"html":{"href":"https://github.com/joomla/joomla-cms/pull/8021"},"issue":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/8021"},"comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/8021/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/8021/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/8021/commits"},"statuses":{"href":"https://api.github.com/repos/joomla/joomla-cms/statuses/5936757746d2722b33bab74c9b5199b729bd35b5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}