Use DraftResource.publish from the review dialog.
Review Request #7424 — Created June 13, 2015 and submitted
The review dialog wasn't using the publish method to publish reviews, which
would still publish but would skip emitting the publishing and published
events. This made it hard to do things from extensions that relied on those
events.I've also fixed up an incorrect comment and removed an unused var definition.
Used this from an extension and saw that the publishing event was successfully
triggered.
Description | From | Last Updated |
---|---|---|
Since this is all pretty much the same except for the function call, maybe we can pre-compute which function we … |
chipx86 |
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/extensions/models/reviewDraftBannerHookModel.js reviewboard/static/rb/js/resources/models/draftReviewModel.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewDialogView.js reviewboard/static/rb/js/extensions/models/reviewDraftBannerHookModel.js reviewboard/static/rb/js/resources/models/draftReviewModel.js