Mercurial > kallithea
comparison rhodecode/templates/admin/admin_log.html @ 1421:c6b811f11c94 beta
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 09 Jul 2011 20:07:59 +0200 |
parents | fd9cc2a32955 |
children | f91d3f9b7230 |
comparison
equal
deleted
inserted
replaced
1420:a2fe0ac8d007 | 1421:c6b811f11c94 |
---|---|
29 </tr> | 29 </tr> |
30 %endfor | 30 %endfor |
31 </table> | 31 </table> |
32 | 32 |
33 <script type="text/javascript"> | 33 <script type="text/javascript"> |
34 var data_div = 'user_log'; | |
35 YUE.onDOMReady(function(){ | 34 YUE.onDOMReady(function(){ |
36 YUE.on(YUD.getElementsByClassName('pager_link'),"click",function(){ | 35 YUE.delegate("user_log","click",function(e, matchedEl, container){ |
37 YUD.setStyle(data_div,'opacity','0.3');}); | 36 ypjax(e.target.href,"user_log",function(){show_more_event();tooltip_activate();}); |
38 YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){ | 37 YUE.preventDefault(e); |
38 },'.pager_link'); | |
39 | |
40 YUE.delegate("user_log","click",function(e,matchedEl,container){ | |
39 var el = e.target; | 41 var el = e.target; |
40 YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); | 42 YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); |
41 YUD.setStyle(el.parentNode,'display','none'); | 43 YUD.setStyle(el.parentNode,'display','none'); |
42 }); | 44 },'.show_more'); |
43 }); | 45 }); |
44 </script> | 46 </script> |
45 | 47 |
46 | |
47 <div class="pagination-wh pagination-left"> | 48 <div class="pagination-wh pagination-left"> |
48 ${c.users_log.pager('$link_previous ~2~ $link_next', | 49 ${c.users_log.pager('$link_previous ~2~ $link_next')} |
49 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ | |
50 success:function(o){ | |
51 YUD.get(data_div).innerHTML=o.responseText; | |
52 show_more_event(); | |
53 tooltip_activate(); | |
54 YUE.on(YUD.getElementsByClassName('pager_link'),"click",function(){ | |
55 YUD.setStyle(data_div,'opacity','0.3'); | |
56 }); | |
57 YUD.setStyle(data_div,'opacity','1');} | |
58 },null); return false;""")} | |
59 </div> | 50 </div> |
60 %else: | 51 %else: |
61 ${_('No actions yet')} | 52 ${_('No actions yet')} |
62 %endif | 53 %endif |
63 | |
64 <script type="text/javascript"> | |
65 show_more_event(); | |
66 </script> |