Commit 3faffa18 authored by Bryce Johnson's avatar Bryce Johnson

Wait for DOM ready to init merge request js.

parent 78daac6e
......@@ -108,8 +108,8 @@
= render "projects/commit/change", type: 'cherry-pick', commit: @merge_request.merge_commit, title: @merge_request.title
:javascript
var merge_request;
merge_request = new MergeRequest({
action: "#{controller.action_name}"
$(function () {
new MergeRequest({
action: "#{controller.action_name}"
});
});
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