From ad3f4922eef56dfc8074727b3abd55a4d69a8eab Mon Sep 17 00:00:00 2001 From: randx Date: Fri, 29 Jun 2012 22:02:22 +0300 Subject: [PATCH] Merge Request: fix automerge widget --- app/assets/javascripts/merge_requests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/merge_requests.js b/app/assets/javascripts/merge_requests.js index 50092ae7..4b155192 100644 --- a/app/assets/javascripts/merge_requests.js +++ b/app/assets/javascripts/merge_requests.js @@ -30,7 +30,7 @@ var MergeRequest = { self.showState(self.opts.current_state); if($(".automerge_widget").length && self.opts.check_enable){ - $.get(opts.url_to_automerge_check, function(data){ + $.get(self.opts.url_to_automerge_check, function(data){ self.showState(data.state); }, "json"); }