1. Takumi IINO
  2. kallithea

Commits

Takumi IINO  committed 49816dd Draft

replace YUI with jquery in kallithea/templates/tags/tags.html

  • Participants
  • Parent commits bd55496
  • Branches default

Comments (0)

Files changed (1)

File kallithea/templates/tags/tags.html

View file
     </div>
 </div>
 <script type="text/javascript">
-YUE.on('compare_tags','click',function(e){
-    YUE.preventDefault(e);
-    var org = YUQ('input[name=compare_org]:checked')[0];
-    var other = YUQ('input[name=compare_other]:checked')[0];
-
+$('#compare_tags').click(function(e){
+    e.preventDefault();
+    var org = $('input[name=compare_org]:checked')[0];
+    var other = $('input[name=compare_other]:checked')[0];
     if(org && other){
         var compare_url = "${h.url('compare_url',repo_name=c.repo_name,org_ref_type='tag',org_ref_name='__ORG__',other_ref_type='tag',other_ref_name='__OTHER__')}";
         var u = compare_url.replace('__ORG__',org.value)
-                           .replace('__OTHER__',other.value);
+                .replace('__OTHER__',other.value);
         window.location=u;
     }
 });