Jasmine doesn't like asserting on the <body> element :(

This commit is contained in:
David Baumgold
2013-05-14 14:23:31 -04:00
parent 10ec604630
commit 070d24cf61
2 changed files with 10 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ CMS.Views.Notification = CMS.Views.SystemFeedback.extend({
CMS.Views.Prompt = CMS.Views.SystemFeedback.extend({
type: "prompt",
render: function() {
if(!window.$body) { window.$body = $(document.body); }
if(this.model.get('shown')) {
$body.addClass('prompt-is-shown');
} else {