Move the diff revision selector into javascript.
Review Request #4565 — Created Sept. 13, 2013 and submitted — Latest diff uploaded
Move the diff revision selector into javascript.
Rather than generating this from the django template and including links, it's
now generated on the client-side, and clicks are handled by triggering the
"revisionSelected" event. This still ends up navigating to another page, but
it's a step towards avoiding the reload.
- Navigated to different diff and interdiff revisions.
- Ran js-tests.
- Ran jshint.
reviewboard/settings.py |
---|
reviewboard/diffviewer/templatetags/difftags.py |
---|
reviewboard/static/rb/css/diffviewer.less |
---|
reviewboard/static/rb/js/diffviewer/views/diffRevisionSelectorView.js |
---|
reviewboard/static/rb/js/pages/views/diffViewerPageView.js |
---|
reviewboard/templates/diffviewer/view_diff.html |
---|