Convert RB.Screenshot to Backbone.
Review Request #3947 — Created March 7, 2013 and submitted — Latest diff uploaded
Convert RB.Screenshot to Backbone. This is a fairly trivial change to migrate the old screenshot object to Backbone.js. The only tricky part of this is that I had to add an indirection step to BaseResourceModel to ensure that the parent object is loaded before calling url(), because if we don't have the parent links, we won't have a URL for the object.
Tested setting screenshot captions and deleting screenshots. Ran js-tests.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
reviewboard/settings.py |
---|
reviewboard/static/rb/js/datastore.js |
---|
reviewboard/static/rb/js/reviews.js |
---|
reviewboard/static/rb/js/models/baseResourceModel.js |
---|
reviewboard/static/rb/js/models/screenshotModel.js |
---|
reviewboard/static/rb/js/models/tests/screenshotModelTests.js |
---|