Changeset - cc5300a1f2ac
[Not reviewed]
default
0 2 0
Mads Kiilerich - 11 years ago 2014-07-04 14:12:06
madski@unity3d.com
pull requests: use select2 for branch and revision selection
2 files changed with 26 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -4804,6 +4804,14 @@ span.pr-closed-tag {
 
    max-width: 978px;
 
}
 

	
 
#s2id_org_ref,
 
#s2id_other_ref,
 
#s2id_org_repo,
 
#s2id_other_repo {
 
    min-width: 150px;
 
    margin: 5px;
 
}
 

	
 
/****
 
  PERMS
 
*****/
kallithea/templates/pullrequests/pullrequest.html
Show inline comments
 
@@ -210,24 +210,38 @@ ${self.repo_context_bar('showpullrequest
 
      });
 
  }
 

	
 
  ## refresh automatically when something changes (org_repo can't change)
 
  YAHOO.util.Event.onDOMReady(function(){
 
      $("#org_repo").select2({
 
          dropdownAutoWidth: true,
 
      });
 
      ## (org_repo can't change)
 

	
 
  YUE.on('org_ref', 'change', function(e){
 
      $("#org_ref").select2({
 
          dropdownAutoWidth: true,
 
      });
 
      $("#org_ref").on("change", function(e){
 
     loadPreview();
 
  });
 

	
 
  YUE.on('other_repo', 'change', function(e){
 
      $("#other_repo").select2({
 
          dropdownAutoWidth: true,
 
      });
 
      $("#other_repo").on("change", function(e){
 
      otherrepoChanged();
 
      loadPreview();
 
  });
 

	
 
  YUE.on('other_ref', 'change', function(e){
 
      $("#other_ref").select2({
 
          dropdownAutoWidth: true,
 
      });
 
      $("#other_ref").on("change", function(e){
 
     loadPreview();
 
  });
 

	
 
  otherrepoChanged();
 
  //lazy load overview after 0.5s
 
  setTimeout(loadPreview, 500);
 
  });
 

	
 
</script>
 

	
0 comments (0 inline, 0 general)