Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make gReviewRequest and gCommentDlg public.

Two more variables that need to be public. These are simply made global,
instead of making them part of RB.
  • Loading branch information...
commit 4c72538fa9814aca7c09746285e5efb6ffe460d6 1 parent aa7b97b
@chipx86 chipx86 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 reviewboard/static/rb/js/reviews.js
View
8 reviewboard/static/rb/js/reviews.js
@@ -1,6 +1,9 @@
+this.gCommentDlg = null;
+this.gReviewRequest = new RB.ReviewRequest(gReviewRequestId,
+ gReviewRequestSitePrefix,
+ gReviewRequestPath);
// State variables
-var gCommentDlg = null;
var gEditCount = 0;
var gPublishing = false;
var gPendingSaveCount = 0;
@@ -9,9 +12,6 @@ var gReviewBanner = $("#review-banner");
var gDraftBanner = $("#draft-banner");
var gDraftBannerButtons = $("input", gDraftBanner);
var gFileAttachmentComments = {};
-var gReviewRequest = new RB.ReviewRequest(gReviewRequestId,
- gReviewRequestSitePrefix,
- gReviewRequestPath);
/*
Please sign in to comment.
Something went wrong with that request. Please try again.