{"action":"created","comment":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/comments/26591710","id":26591710,"diff_hunk":"@@ -810,6 +811,14 @@ require({\n         }\n     }\n \n+    registry.byId('buttonNew').on('click', function() {\n+        loadFromGallery(newDemo);\n+        var demoSrc = newDemo.name + '.html';\n+        if (demoSrc !== window.location.search.substring(1)) {","path":"Apps/Sandcastle/CesiumSandcastle.js","position":15,"original_position":15,"commit_id":"e04c8fae2d504c4158b28c40c3199c40762e3b68","original_commit_id":"e04c8fae2d504c4158b28c40c3199c40762e3b68","user":{"login":"adi2412","id":2319795,"avatar_url":"https://avatars.githubusercontent.com/u/2319795?v=3","gravatar_id":"","url":"https://api.github.com/users/adi2412","html_url":"https://github.com/adi2412","followers_url":"https://api.github.com/users/adi2412/followers","following_url":"https://api.github.com/users/adi2412/following{/other_user}","gists_url":"https://api.github.com/users/adi2412/gists{/gist_id}","starred_url":"https://api.github.com/users/adi2412/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adi2412/subscriptions","organizations_url":"https://api.github.com/users/adi2412/orgs","repos_url":"https://api.github.com/users/adi2412/repos","events_url":"https://api.github.com/users/adi2412/events{/privacy}","received_events_url":"https://api.github.com/users/adi2412/received_events","type":"User","site_admin":false},"body":"You're right. Sorry I didn't notice that earlier. It's because location.search just spits out the entire query URL and so the string matching fails. I would need to split the string into separate query strings and then get the value for the 'src' key. That should fix it.","created_at":"2015-03-17T16:55:43Z","updated_at":"2015-03-17T16:55:43Z","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2559#discussion_r26591710","pull_request_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559","_links":{"self":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/comments/26591710"},"html":{"href":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2559#discussion_r26591710"},"pull_request":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559"}}},"pull_request":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559","id":30704480,"html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2559","diff_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2559.diff","patch_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2559.patch","issue_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2559","number":2559,"state":"open","locked":false,"title":"Add new button to SandCastle that loads Hello World example","user":{"login":"adi2412","id":2319795,"avatar_url":"https://avatars.githubusercontent.com/u/2319795?v=3","gravatar_id":"","url":"https://api.github.com/users/adi2412","html_url":"https://github.com/adi2412","followers_url":"https://api.github.com/users/adi2412/followers","following_url":"https://api.github.com/users/adi2412/following{/other_user}","gists_url":"https://api.github.com/users/adi2412/gists{/gist_id}","starred_url":"https://api.github.com/users/adi2412/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adi2412/subscriptions","organizations_url":"https://api.github.com/users/adi2412/orgs","repos_url":"https://api.github.com/users/adi2412/repos","events_url":"https://api.github.com/users/adi2412/events{/privacy}","received_events_url":"https://api.github.com/users/adi2412/received_events","type":"User","site_admin":false},"body":"New Button added to the top toolbar. #1898\r\n\r\n![screen shot 2015-03-07 at 9 14 19 pm](https://cloud.githubusercontent.com/assets/2319795/6541947/0071ce0a-c50f-11e4-9bdb-fa7675df4a5a.png)\r\n\r\n","created_at":"2015-03-07T15:45:12Z","updated_at":"2015-03-17T16:55:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fa22d7dc2213636685696ca990c713d8a75518c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559/commits","review_comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559/comments","review_comment_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2559/comments","statuses_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/statuses/e04c8fae2d504c4158b28c40c3199c40762e3b68","head":{"label":"adi2412:master","ref":"master","sha":"e04c8fae2d504c4158b28c40c3199c40762e3b68","user":{"login":"adi2412","id":2319795,"avatar_url":"https://avatars.githubusercontent.com/u/2319795?v=3","gravatar_id":"","url":"https://api.github.com/users/adi2412","html_url":"https://github.com/adi2412","followers_url":"https://api.github.com/users/adi2412/followers","following_url":"https://api.github.com/users/adi2412/following{/other_user}","gists_url":"https://api.github.com/users/adi2412/gists{/gist_id}","starred_url":"https://api.github.com/users/adi2412/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adi2412/subscriptions","organizations_url":"https://api.github.com/users/adi2412/orgs","repos_url":"https://api.github.com/users/adi2412/repos","events_url":"https://api.github.com/users/adi2412/events{/privacy}","received_events_url":"https://api.github.com/users/adi2412/received_events","type":"User","site_admin":false},"repo":{"id":31723330,"name":"cesium","full_name":"adi2412/cesium","owner":{"login":"adi2412","id":2319795,"avatar_url":"https://avatars.githubusercontent.com/u/2319795?v=3","gravatar_id":"","url":"https://api.github.com/users/adi2412","html_url":"https://github.com/adi2412","followers_url":"https://api.github.com/users/adi2412/followers","following_url":"https://api.github.com/users/adi2412/following{/other_user}","gists_url":"https://api.github.com/users/adi2412/gists{/gist_id}","starred_url":"https://api.github.com/users/adi2412/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adi2412/subscriptions","organizations_url":"https://api.github.com/users/adi2412/orgs","repos_url":"https://api.github.com/users/adi2412/repos","events_url":"https://api.github.com/users/adi2412/events{/privacy}","received_events_url":"https://api.github.com/users/adi2412/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adi2412/cesium","description":"WebGL virtual globe and map engine","fork":true,"url":"https://api.github.com/repos/adi2412/cesium","forks_url":"https://api.github.com/repos/adi2412/cesium/forks","keys_url":"https://api.github.com/repos/adi2412/cesium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adi2412/cesium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adi2412/cesium/teams","hooks_url":"https://api.github.com/repos/adi2412/cesium/hooks","issue_events_url":"https://api.github.com/repos/adi2412/cesium/issues/events{/number}","events_url":"https://api.github.com/repos/adi2412/cesium/events","assignees_url":"https://api.github.com/repos/adi2412/cesium/assignees{/user}","branches_url":"https://api.github.com/repos/adi2412/cesium/branches{/branch}","tags_url":"https://api.github.com/repos/adi2412/cesium/tags","blobs_url":"https://api.github.com/repos/adi2412/cesium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adi2412/cesium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adi2412/cesium/git/refs{/sha}","trees_url":"https://api.github.com/repos/adi2412/cesium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adi2412/cesium/statuses/{sha}","languages_url":"https://api.github.com/repos/adi2412/cesium/languages","stargazers_url":"https://api.github.com/repos/adi2412/cesium/stargazers","contributors_url":"https://api.github.com/repos/adi2412/cesium/contributors","subscribers_url":"https://api.github.com/repos/adi2412/cesium/subscribers","subscription_url":"https://api.github.com/repos/adi2412/cesium/subscription","commits_url":"https://api.github.com/repos/adi2412/cesium/commits{/sha}","git_commits_url":"https://api.github.com/repos/adi2412/cesium/git/commits{/sha}","comments_url":"https://api.github.com/repos/adi2412/cesium/comments{/number}","issue_comment_url":"https://api.github.com/repos/adi2412/cesium/issues/comments{/number}","contents_url":"https://api.github.com/repos/adi2412/cesium/contents/{+path}","compare_url":"https://api.github.com/repos/adi2412/cesium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adi2412/cesium/merges","archive_url":"https://api.github.com/repos/adi2412/cesium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adi2412/cesium/downloads","issues_url":"https://api.github.com/repos/adi2412/cesium/issues{/number}","pulls_url":"https://api.github.com/repos/adi2412/cesium/pulls{/number}","milestones_url":"https://api.github.com/repos/adi2412/cesium/milestones{/number}","notifications_url":"https://api.github.com/repos/adi2412/cesium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adi2412/cesium/labels{/name}","releases_url":"https://api.github.com/repos/adi2412/cesium/releases{/id}","created_at":"2015-03-05T16:24:14Z","updated_at":"2015-03-09T12:08:32Z","pushed_at":"2015-03-09T12:08:32Z","git_url":"git://github.com/adi2412/cesium.git","ssh_url":"git@github.com:adi2412/cesium.git","clone_url":"https://github.com/adi2412/cesium.git","svn_url":"https://github.com/adi2412/cesium","homepage":"cesiumjs.org","size":206352,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"master"}},"base":{"label":"AnalyticalGraphicsInc:master","ref":"master","sha":"99dea50a8a4777da22cd3f8b039f3f7de6906c74","user":{"login":"AnalyticalGraphicsInc","id":1490220,"avatar_url":"https://avatars.githubusercontent.com/u/1490220?v=3","gravatar_id":"","url":"https://api.github.com/users/AnalyticalGraphicsInc","html_url":"https://github.com/AnalyticalGraphicsInc","followers_url":"https://api.github.com/users/AnalyticalGraphicsInc/followers","following_url":"https://api.github.com/users/AnalyticalGraphicsInc/following{/other_user}","gists_url":"https://api.github.com/users/AnalyticalGraphicsInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AnalyticalGraphicsInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnalyticalGraphicsInc/subscriptions","organizations_url":"https://api.github.com/users/AnalyticalGraphicsInc/orgs","repos_url":"https://api.github.com/users/AnalyticalGraphicsInc/repos","events_url":"https://api.github.com/users/AnalyticalGraphicsInc/events{/privacy}","received_events_url":"https://api.github.com/users/AnalyticalGraphicsInc/received_events","type":"Organization","site_admin":false},"repo":{"id":3606738,"name":"cesium","full_name":"AnalyticalGraphicsInc/cesium","owner":{"login":"AnalyticalGraphicsInc","id":1490220,"avatar_url":"https://avatars.githubusercontent.com/u/1490220?v=3","gravatar_id":"","url":"https://api.github.com/users/AnalyticalGraphicsInc","html_url":"https://github.com/AnalyticalGraphicsInc","followers_url":"https://api.github.com/users/AnalyticalGraphicsInc/followers","following_url":"https://api.github.com/users/AnalyticalGraphicsInc/following{/other_user}","gists_url":"https://api.github.com/users/AnalyticalGraphicsInc/gists{/gist_id}","starred_url":"https://api.github.com/users/AnalyticalGraphicsInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnalyticalGraphicsInc/subscriptions","organizations_url":"https://api.github.com/users/AnalyticalGraphicsInc/orgs","repos_url":"https://api.github.com/users/AnalyticalGraphicsInc/repos","events_url":"https://api.github.com/users/AnalyticalGraphicsInc/events{/privacy}","received_events_url":"https://api.github.com/users/AnalyticalGraphicsInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AnalyticalGraphicsInc/cesium","description":"WebGL virtual globe and map engine","fork":false,"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium","forks_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/forks","keys_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/teams","hooks_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/hooks","issue_events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/events{/number}","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/events","assignees_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/assignees{/user}","branches_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/branches{/branch}","tags_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/tags","blobs_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/statuses/{sha}","languages_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/languages","stargazers_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/stargazers","contributors_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/contributors","subscribers_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/subscribers","subscription_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/subscription","commits_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/comments{/number}","contents_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/contents/{+path}","compare_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/merges","archive_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/downloads","issues_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues{/number}","pulls_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls{/number}","milestones_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/milestones{/number}","notifications_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/labels{/name}","releases_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/releases{/id}","created_at":"2012-03-02T22:27:14Z","updated_at":"2015-03-16T16:10:00Z","pushed_at":"2015-03-17T02:11:37Z","git_url":"git://github.com/AnalyticalGraphicsInc/cesium.git","ssh_url":"git@github.com:AnalyticalGraphicsInc/cesium.git","clone_url":"https://github.com/AnalyticalGraphicsInc/cesium.git","svn_url":"https://github.com/AnalyticalGraphicsInc/cesium","homepage":"cesiumjs.org","size":462283,"stargazers_count":742,"watchers_count":742,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":437,"mirror_url":null,"open_issues_count":273,"forks":437,"open_issues":273,"watchers":742,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559"},"html":{"href":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2559"},"issue":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2559"},"comments":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2559/comments"},"review_comments":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559/comments"},"review_comment":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2559/commits"},"statuses":{"href":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/statuses/e04c8fae2d504c4158b28c40c3199c40762e3b68"}}}}