{"action":"closed","issue":{"url":"https://api.github.com/repos/divio/django-cms/issues/3717","labels_url":"https://api.github.com/repos/divio/django-cms/issues/3717/labels{/name}","comments_url":"https://api.github.com/repos/divio/django-cms/issues/3717/comments","events_url":"https://api.github.com/repos/divio/django-cms/issues/3717/events","html_url":"https://github.com/divio/django-cms/issues/3717","id":53091570,"number":3717,"title":"Uncaught SyntaxError: Unexpected token ILLEGAL causes save to become stuck","user":{"login":"peterfarrell","id":2857188,"avatar_url":"https://avatars.githubusercontent.com/u/2857188?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfarrell","html_url":"https://github.com/peterfarrell","followers_url":"https://api.github.com/users/peterfarrell/followers","following_url":"https://api.github.com/users/peterfarrell/following{/other_user}","gists_url":"https://api.github.com/users/peterfarrell/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfarrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfarrell/subscriptions","organizations_url":"https://api.github.com/users/peterfarrell/orgs","repos_url":"https://api.github.com/users/peterfarrell/repos","events_url":"https://api.github.com/users/peterfarrell/events{/privacy}","received_events_url":"https://api.github.com/users/peterfarrell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/divio/django-cms/labels/component:%20frontend","name":"component: frontend","color":"fef2c0"},{"url":"https://api.github.com/repos/divio/django-cms/labels/status:%20accepted","name":"status: accepted","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/divio/django-cms/milestones/26","labels_url":"https://api.github.com/repos/divio/django-cms/milestones/26/labels","id":631652,"number":26,"title":"3.1","description":"The next major consolidation release of django CMS\r\n\r\nThis release will:\r\n\r\n* consolidate progress made in 3.0\r\n* establish a safe, solid base for future more ambitious work\r\n* maintain maximum backwards compatibility for third-party applications\r\n* re-engage 2.x users who feel alienated, improve upgrade path from 2.x\r\n* identify and tidy loose ends\r\n* identify and soften pain points\r\n","creator":{"login":"mkoistinen","id":615759,"avatar_url":"https://avatars.githubusercontent.com/u/615759?v=3","gravatar_id":"","url":"https://api.github.com/users/mkoistinen","html_url":"https://github.com/mkoistinen","followers_url":"https://api.github.com/users/mkoistinen/followers","following_url":"https://api.github.com/users/mkoistinen/following{/other_user}","gists_url":"https://api.github.com/users/mkoistinen/gists{/gist_id}","starred_url":"https://api.github.com/users/mkoistinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkoistinen/subscriptions","organizations_url":"https://api.github.com/users/mkoistinen/orgs","repos_url":"https://api.github.com/users/mkoistinen/repos","events_url":"https://api.github.com/users/mkoistinen/events{/privacy}","received_events_url":"https://api.github.com/users/mkoistinen/received_events","type":"User","site_admin":false},"open_issues":109,"closed_issues":56,"state":"open","created_at":"2014-04-16T11:31:06Z","updated_at":"2015-02-14T14:43:21Z","due_on":"2015-03-31T22:00:00Z","closed_at":null},"comments":8,"created_at":"2014-12-30T03:58:27Z","updated_at":"2015-02-14T14:43:21Z","closed_at":"2015-02-14T14:43:21Z","body":"The following code causes Chrome to break when saving a plugin.  The plugin saves and the modal updates with \"XXX was changed successfully. You may edit it again below.\"  The modal doesn't redirect and stalls with JS error `Uncaught SyntaxError: Unexpected token ILLEGAL`\r\n\r\nhttps://github.com/divio/django-cms/blob/e2dfbf86b1a11173bff1dff6285d8d68e0631105/cms/templates/admin/cms/page/close_frame.html#L7-L12\r\n\r\n````\r\n<script>\r\nwindow.CMS || window.parent.CMS || document.write(\r\n\t'<script src=\"/static/cms/js/libs/jquery.min.js\" type=\"text/javascript\"></script>' +\r\n\t'<script src=\"/static/cms/js/modules/cms.base.js\" type=\"text/javascript\"></script>'\r\n);\r\n</script>\r\n```\r\n\r\nThe error looks like this in Chrome:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2857188/5575557/c6bb2e70-8fa5-11e4-9d80-7c4a56f8b124.png)\r\n\r\n"}}