mozreview: trigger an event when a filediff is loaded (
bug 1321068) r?davidwalsh
MozReview-Commit-ID: Fo82hzduMOS
--- a/reviewboard/reviewboard/static/rb/js/pages/views/diffViewerPageView_mozreview.js
+++ b/reviewboard/reviewboard/static/rb/js/pages/views/diffViewerPageView_mozreview.js
@@ -401,16 +401,18 @@ RB.DiffViewerPageView = RB.ReviewablePag
.append($anchor);
}
if ($anchor.length !== 0) {
this.selectAnchor($anchor);
this._startAtAnchorName = null;
}
}
+
+ $(document).trigger('mr:diffview-loaded', diffReviewable.get('fileDiffID'));
},
/*
* Selects the anchor at a specified location.
*
* By default, this will scroll the page to position the anchor near
* the top of the view.
*/