Rendering Option Sets inside of Panels Preview has always been a bit dodgy, but sometimes it completely blows up (see screen shots attached). In a perfect world, we would fix all the JS and rendering so that I could use Lift's previews inside of Panel's previews. Given that the world is an imperfect place, this patch does allow me to get the job done.

Comments

eshta’s picture

Note that this is the same JS error from a different bug report (also using panels and demo framework)

saltednut’s picture

Status: Active » Reviewed & tested by the community

This seems like a sensible solution to the problem at least for now. I'd suggest committing it with a @todo to allow for the Panels admin previews to function in the same fashion as the normal front end display.

saltednut’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.13 KB

Added a check for Panelizer pages too.

Possible paths where this could occur:

admin/config/content/panelizer/node/editorial.page_manager/content
admin/structure/pages/nojs/operation/*/handlers/*_panel_context/content
node/*/panelizer/page_manager/content
saltednut’s picture

StatusFileSize
new1.13 KB

And here's one without whitespace errors. :)