changeset 4706:94a7abdac8f6

javascripts: replace YUI with jquery in kallithea/templates/pullrequests/pullrequest.html
author Takumi IINO <trot.thunder@gmail.com>
date Sat, 29 Nov 2014 16:04:48 +0900
parents 4a57462b5101
children b845d1e94e2e
files kallithea/templates/pullrequests/pullrequest.html
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest.html	Sat Nov 29 16:04:42 2014 +0900
+++ b/kallithea/templates/pullrequests/pullrequest.html	Sat Nov 29 16:04:48 2014 +0900
@@ -176,7 +176,7 @@
               $other_ref.val(data.selected_ref);
 
               // reset && add the reviewer based on selected repo
-              YUD.get('review_members').innerHTML = '';
+              $('#review_members').html('');
               addReviewMember(data.user.user_id, data.user.firstname,
                               data.user.lastname, data.user.username,
                               data.user.gravatar_link);
@@ -203,16 +203,15 @@
                          as_form=True,
                          merge=True,
                          )}";
-      var org_repo = YUQ('#pull_request_form #org_repo')[0].value;
-      var org_ref = YUQ('#pull_request_form #org_ref')[0].value.split(':');
+      var org_repo = $('#pull_request_form #org_repo').val();
+      var org_ref = $('#pull_request_form #org_ref').val().split(':');
       ## TODO: make nice link like link_to_ref() do
-      YUD.get('org_rev_span').innerHTML = org_ref[2].substr(0,12);
+      $('#org_rev_span').html(org_ref[2].substr(0,12));
 
-      var other_repo = YUQ('#pull_request_form #other_repo')[0].value;
-      var other_ref = YUQ('#pull_request_form #other_ref')[0].value.split(':');
-      YUD.get('other_rev_span').innerHTML = other_ref[2].substr(0,12);
+      var other_repo = $('#pull_request_form #other_repo').val();
+      var other_ref = $('#pull_request_form #other_ref').val().split(':');
+      $('#other_rev_span').html(other_ref[2].substr(0,12));
 
-      var select_refs = YUQ('#pull_request_form select.refs')
       var rev_data = {
           '__org_repo__': org_repo,
           '__org_ref_name__': org_ref[2],