Mercurial > kallithea
changeset 4465:766ed8058a4a
templates: replace YUI with jquery in kallithea/templates/admin/admin_log.html
author | Takumi IINO <trot.thunder@gmail.com> |
---|---|
date | Tue, 22 Jul 2014 00:46:19 +0900 |
parents | 20ec646170b3 |
children | cf2af0dbb3a0 |
files | kallithea/templates/admin/admin_log.html |
diffstat | 1 files changed, 13 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/admin/admin_log.html Tue Aug 19 21:10:09 2014 +0200 +++ b/kallithea/templates/admin/admin_log.html Tue Jul 22 00:46:19 2014 +0900 @@ -39,20 +39,19 @@ <script type="text/javascript"> $(document).ready(function(){ - YUE.delegate("user_log","click",function(e, matchedEl, container){ - ypjax(e.target.href,"user_log",function(){ - show_more_event(); - tooltip_activate(); - show_changeset_tooltip(); - }); - YUE.preventDefault(e); - },'.pager_link'); - - YUE.delegate("user_log","click",function(e,matchedEl,container){ - var el = e.target; - YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); - YUD.setStyle(el.parentNode,'display','none'); - },'.show_more'); + $('#user_log').on('click','.pager_link',function(e){ + ypjax(e.target.href,"user_log",function(){ + show_more_event(); + tooltip_activate(); + show_changeset_tooltip(); + }); + e.preventDefault(); + }); + $('#user_log').on('click','.show_more',function(e){ + var el = e.target; + $('#'+el.id.substring(1)).show(); + $(el.parentNode).hide(); + }); }); </script>