Mercurial > kallithea
comparison rhodecode/templates/pullrequests/pullrequest.html @ 3439:0153f5514aa3 beta
pullrequest: show 'details' link immediately - don't wait for changeset list
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Feb 2013 23:17:56 +0100 |
parents | cf3c2fce197e |
children | c4bb2b22110e |
comparison
equal
deleted
inserted
replaced
3438:cf3c2fce197e | 3439:0153f5514aa3 |
---|---|
157 for (k in rev_data){ | 157 for (k in rev_data){ |
158 url = url.replace('__'+k+'__',rev_data[k]); | 158 url = url.replace('__'+k+'__',rev_data[k]); |
159 } | 159 } |
160 | 160 |
161 YUD.get('pull_request_overview').innerHTML = "${_('Loading ...')}"; | 161 YUD.get('pull_request_overview').innerHTML = "${_('Loading ...')}"; |
162 YUD.get('pull_request_overview_url').href = url; // shouldn't have as_form ... but ... | |
163 YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display',''); | |
162 ypjax(url,'pull_request_overview', function(data){ | 164 ypjax(url,'pull_request_overview', function(data){ |
163 var sel_box = YUQ('#pull_request_form #other_repo')[0]; | 165 var sel_box = YUQ('#pull_request_form #other_repo')[0]; |
164 var repo_name = sel_box.options[sel_box.selectedIndex].value; | 166 var repo_name = sel_box.options[sel_box.selectedIndex].value; |
165 var _data = other_repos_info[repo_name]; | 167 var _data = other_repos_info[repo_name]; |
166 YUD.get('pull_request_overview_url').href = url; | |
167 YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display',''); | |
168 YUD.get('other_repo_desc').innerHTML = other_repos_info[repo_name]['description']; | 168 YUD.get('other_repo_desc').innerHTML = other_repos_info[repo_name]['description']; |
169 YUD.get('other_ref').innerHTML = other_repos_info[repo_name]['revs']; | 169 YUD.get('other_ref').innerHTML = other_repos_info[repo_name]['revs']; |
170 // select back the revision that was just compared | 170 // select back the revision that was just compared |
171 setSelectValue(YUD.get('other_ref'), rev_data['other_ref']); | 171 setSelectValue(YUD.get('other_ref'), rev_data['other_ref']); |
172 // reset && add the reviewer based on selected repo | 172 // reset && add the reviewer based on selected repo |