changeset 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 4725d097c3c0
files rhodecode/templates/pullrequests/pullrequest.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest.html	Thu Feb 28 23:17:26 2013 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest.html	Thu Feb 28 23:17:56 2013 +0100
@@ -159,12 +159,12 @@
       }
 
       YUD.get('pull_request_overview').innerHTML = "${_('Loading ...')}";
+      YUD.get('pull_request_overview_url').href = url; // shouldn't have as_form ... but ...
+      YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','');
       ypjax(url,'pull_request_overview', function(data){
           var sel_box = YUQ('#pull_request_form #other_repo')[0];
           var repo_name = sel_box.options[sel_box.selectedIndex].value;
           var _data = other_repos_info[repo_name];
-          YUD.get('pull_request_overview_url').href = url;
-          YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','');
           YUD.get('other_repo_desc').innerHTML = other_repos_info[repo_name]['description'];
           YUD.get('other_ref').innerHTML = other_repos_info[repo_name]['revs'];
           // select back the revision that was just compared