Show More
@@ -61,7 +61,10 b'' | |||||
61 | </div> |
|
61 | </div> | |
62 | <div style="clear:both;padding-top: 10px"></div> |
|
62 | <div style="clear:both;padding-top: 10px"></div> | |
63 | <div style="float:left" id="pull_request_overview"> |
|
63 | <div style="float:left" id="pull_request_overview"> | |
64 |
</div> |
|
64 | </div> | |
|
65 | <div style="float:left;clear:both;padding:10px 10px 10px 0px;display:none"> | |||
|
66 | <a id="pull_request_overview_url" href="#">${_('Detailed compare view')}</a> | |||
|
67 | </div> | |||
65 | </div> |
|
68 | </div> | |
66 | <div style="float:left; border-left:1px dashed #eee"> |
|
69 | <div style="float:left; border-left:1px dashed #eee"> | |
67 | <h4>${_('Pull request reviewers')}</h4> |
|
70 | <h4>${_('Pull request reviewers')}</h4> | |
@@ -141,6 +144,7 b'' | |||||
141 | MultiSelectWidget('review_members','available_members','pull_request_form'); |
|
144 | MultiSelectWidget('review_members','available_members','pull_request_form'); | |
142 |
|
145 | |||
143 | var loadPreview = function(){ |
|
146 | var loadPreview = function(){ | |
|
147 | YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none'); | |||
144 | var url = "${h.url('compare_url', |
|
148 | var url = "${h.url('compare_url', | |
145 | repo_name='org_repo', |
|
149 | repo_name='org_repo', | |
146 | org_ref_type='branch', org_ref='org_ref', |
|
150 | org_ref_type='branch', org_ref='org_ref', | |
@@ -169,8 +173,11 b'' | |||||
169 | url = url.replace(key,val); |
|
173 | url = url.replace(key,val); | |
170 | } |
|
174 | } | |
171 | } |
|
175 | } | |
172 |
|
176 | |||
173 |
ypjax(url,'pull_request_overview', function(data){ |
|
177 | ypjax(url,'pull_request_overview', function(data){ | |
|
178 | YUD.get('pull_request_overview_url').href = url; | |||
|
179 | YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display',''); | |||
|
180 | }) | |||
174 | } |
|
181 | } | |
175 | YUE.on('refresh','click',function(e){ |
|
182 | YUE.on('refresh','click',function(e){ | |
176 | loadPreview() |
|
183 | loadPreview() |
General Comments 0
You need to be logged in to leave comments.
Login now