This is the preferred way to do lambda scopes now (Rails 3.2)
Class methods, not instance methods (facepalm)
Defining class methods from a module
Refactor script.js to suppress error

The navigation-pinning code was producing JS errors on non-activity pages, so this shuts it off if there's no navigation to pin. Also, some variable renaming to be more Javascripty.
Fixing test we broke for save-on-change.js
Adds bg_source attribute to ImageQuestions

Using this to distinguish between Snapshot questions and blank-background Draw questions for [#58968010]. Using a string as the type so we can eventually allow users to specify for [#59358426].

https://www.pivotaltracker.com/story/show/58968010
https://www.pivotaltracker.com/story/show/59358426
Authors can select Shutterbug or Drawing; buttons

There's a select menu for picking if an ImageQuestion is from Shutterbug or from a Drawing, and the views render different buttons depending on the selection.
This was a premature optimization.
Open the image question window without snapshot

[#58968010] Opening the image question modal without first taking a DOM snapshot actually gets us all the behavior we want, with a few details still needed to account for this new use case.

https://www.pivotaltracker.com/story/show/58968010
Hide the "replace snapshot" if it isn't a snapshot

[#58968010]
Set buttons to edit existing drawing answer

[#58968010] Checking the thumbnail as well as the answer source to show us if there's an existing answer, and thus set the buttons properly. (Also, hide the "draw" button if we're showing "edit".)

https://www.pivotaltracker.com/story/show/58968010
Merge branch 'image-question'
Adds bg_url to Embeddable::ImageQuestion

For [#59358426], we'll use this to extend the Drawing type of ImageQuestion by providing the URL of a background image to draw on. This adds that attribute to the ImageQuestion model.

https://www.pivotaltracker.com/story/show/59358426
Allow an author-specified background image for ImageQuestions

For [#59358426] (drawing questions with author-specified background images) to work, we take the specified background image URL and copy it to the image_url of the answer (which would contain the URL of the snapshot image in a Shutterbug question, and would be blank for other drawing questions).

https://www.pivotaltracker.com/story/show/59358426
Adds form fields to provide bg image for ImageQuestions

The last of the big pieces for an author-specified background image to annotate. [#59358426]

https://www.pivotaltracker.com/story/show/59358426
Merge branch 'refs/heads/image-question'
Set max sizes for ImageInteractive light boxes

[#53567745] This sets the maximum size of the lightbox to 100% of the browser's height and/or width.

https://www.pivotaltracker.com/story/show/53567745
Updating colorbox plugin
Updating jquery.colorbox with minHeight/minWidth

For [#59598520], this lets us do minWidth and minHeight in the color box settings. See https://github.com/pjmorse/colorbox . This doesn't (yet) expand the actual image to fill the space yet, just the modal itself.

https://www.pivotaltracker.com/story/show/59598520
Expand photo to fill color box if minWidth is set

[#59598520] Zooms photos to fill a specified minWidth.

https://www.pivotaltracker.com/story/show/59598520