BigW Consortium Gitlab

Commit de484b3d by Filipa Lacerda

Backport of EE fix in !954 - delays the initialization of MergeRequest…

Backport of EE fix in !954 - delays the initialization of MergeRequest javascript until after DOM ready
parent f32ee822
...@@ -115,11 +115,10 @@ ...@@ -115,11 +115,10 @@
= render "projects/commit/change", type: 'cherry-pick', commit: @merge_request.merge_commit, title: @merge_request.title = render "projects/commit/change", type: 'cherry-pick', commit: @merge_request.merge_commit, title: @merge_request.title
:javascript :javascript
var merge_request; $(function () {
new MergeRequest({
merge_request = new MergeRequest({ action: "#{controller.action_name}"
action: "#{controller.action_name}" });
}); });
var mrRefreshWidgetUrl = "#{mr_widget_refresh_url(@merge_request)}"; var mrRefreshWidgetUrl = "#{mr_widget_refresh_url(@merge_request)}";
---
title: backport of EE fix !954
merge_request:
author:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment