- 09 Jul, 2013 40 commits
-
-
Previously, for a textbook with only one chapter, we allowed that chapter to not have a title -- under the assumption that it would be shown as a monolithic textbook, instead of a chaptered textbook. However, the UI doesn't support that idea, the code was getting a bit messy, and there was no real benefit to the idea of not having to specify a chapter title. This commit removes that special case, and ensures that all textbook chapters must have a name and an asset path.
David Baumgold committed -
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
They are the defaults now
David Baumgold committed -
David Baumgold committed
-
David Baumgold committed
-
But only slightly. Sorry Christina.
David Baumgold committed -
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
Frances Botsford committed
-
David Baumgold committed
-
Frances Botsford committed
-
David Baumgold committed
-
David Baumgold committed
-
Replacing the get_request_method function everywhere
David Baumgold committed -
David Baumgold committed
-
David Baumgold committed
-
Frances Botsford committed
-
David Baumgold committed
-
David Baumgold committed
-
Previously, when a model was deleted, the entire collection would save itself to the server again. Now, we just call model.destroy(), which doesn't affect other models.
David Baumgold committed -
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
Created a few RESTful API endpoints, which required creating and assigning arbitrary IDs to PDF textbooks. Changed the Backbone views to save individual models, instead of saving a whole collection.
David Baumgold committed -
Based on http://djangosnippets.org/snippets/154/
David Baumgold committed -
minShown = 1250, closeIcon = false
David Baumgold committed -
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
David Baumgold committed
-
Previously, the code would dynamically add a chapter on render() if the textbook had no chapters, and would remove all empty chapters when the edit view was closed. Now, the render method doesn't modify the model at all anymore (yay!) and when the edit view is closed, remove all empty chapters but be sure to leave at least one left.
David Baumgold committed
-