yocontra / smog

HTML5/Node/WebSocket MongoDB panel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toggle the "crop" class on clicking a document

SeanBannister opened this issue · comments

I was thinking it'd be handy if clicking on a document (displayed in the <pre>) toggled the "crop" class so we could view the whole document,. And maybe even have a button in the header that toggles all of them to quickly view all your content.

I actually tried to implement this using jquery toggleClass but I'm not familiar with coffescript so had no idea how this should be written or where it should be placed.

Pushed and published - if you want to toggle all with a button just do $(".dataPreview").toggleClass("crop")

Thanks, that was quick :)