{"action":"created","issue":{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/31","labels_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/31/comments","events_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/31/events","html_url":"https://github.com/wvuweb/cleanslate-cms/issues/31","id":54921654,"number":31,"title":"\"Preview\" in Mercury is busted","user":{"login":"adamjohnson","id":575865,"avatar_url":"https://avatars.githubusercontent.com/u/575865?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjohnson","html_url":"https://github.com/adamjohnson","followers_url":"https://api.github.com/users/adamjohnson/followers","following_url":"https://api.github.com/users/adamjohnson/following{/other_user}","gists_url":"https://api.github.com/users/adamjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjohnson/subscriptions","organizations_url":"https://api.github.com/users/adamjohnson/orgs","repos_url":"https://api.github.com/users/adamjohnson/repos","events_url":"https://api.github.com/users/adamjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/adamjohnson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"nreckart","id":14725,"avatar_url":"https://avatars.githubusercontent.com/u/14725?v=3","gravatar_id":"","url":"https://api.github.com/users/nreckart","html_url":"https://github.com/nreckart","followers_url":"https://api.github.com/users/nreckart/followers","following_url":"https://api.github.com/users/nreckart/following{/other_user}","gists_url":"https://api.github.com/users/nreckart/gists{/gist_id}","starred_url":"https://api.github.com/users/nreckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nreckart/subscriptions","organizations_url":"https://api.github.com/users/nreckart/orgs","repos_url":"https://api.github.com/users/nreckart/repos","events_url":"https://api.github.com/users/nreckart/events{/privacy}","received_events_url":"https://api.github.com/users/nreckart/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-20T18:39:57Z","updated_at":"2015-01-20T18:39:58Z","closed_at":null,"body":"_From @adamjohnson on February 13, 2014 0:7_\n\n### Steps to Reproduce\r\n\r\n1. Edit any page in CleanSlate.\r\n1. Hit the \"Preview\" button in Mercury.\r\n\r\nResult: Nothing changes.\r\n\r\n### Expected Behavior:\r\n\r\nEditable region fields should disappear and you should be able to see how your page would look to normal site visitors (minus the Mercury edit bar).\r\n\r\nHere's the error in the console:\r\n\r\n```\r\nUncaught TypeError: Object [object global] has no method '$' editor:155\r\n(anonymous function) editor:155\r\njQuery.extend.trigger mercury-a57d20e645b7e6076de77be6beaf63bb.js:32\r\nMercury.Toolbar.Button.t.handleClick mercury-a57d20e645b7e6076de77be6beaf63bb.js:33\r\n(anonymous function) mercury-a57d20e645b7e6076de77be6beaf63bb.js:33\r\n```\r\n\r\nTested in Chrome and Firefox.\n\n_Copied from original issue: wvuweb/cleanslate#30_"},"comment":{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/comments/70707495","html_url":"https://github.com/wvuweb/cleanslate-cms/issues/31#issuecomment-70707495","issue_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/31","id":70707495,"user":{"login":"adamjohnson","id":575865,"avatar_url":"https://avatars.githubusercontent.com/u/575865?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjohnson","html_url":"https://github.com/adamjohnson","followers_url":"https://api.github.com/users/adamjohnson/followers","following_url":"https://api.github.com/users/adamjohnson/following{/other_user}","gists_url":"https://api.github.com/users/adamjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjohnson/subscriptions","organizations_url":"https://api.github.com/users/adamjohnson/orgs","repos_url":"https://api.github.com/users/adamjohnson/repos","events_url":"https://api.github.com/users/adamjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/adamjohnson/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T18:39:58Z","updated_at":"2015-01-20T18:39:58Z","body":"_From @nreckart on February 13, 2014 18:30_\n\nThis only seems to be an issue when editing a site that does not include jQuery in its theme. [Some JS](https://github.com/wvuweb/cleanslate/blob/dev/app/views/layouts/mercury.html.erb#L70-L71) associated with the Gist and Comment snippets seem to be the cause of the error."}}