Mercurial > kallithea
comparison rhodecode/templates/shortlog/shortlog_data.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 | d14723711d17 |
children | 833f9dec0a06 |
comparison
equal
deleted
inserted
replaced
1420:a2fe0ac8d007 | 1421:c6b811f11c94 |
---|---|
44 %endfor | 44 %endfor |
45 | 45 |
46 </table> | 46 </table> |
47 | 47 |
48 <script type="text/javascript"> | 48 <script type="text/javascript"> |
49 var data_div = 'shortlog_data'; | 49 YUE.onDOMReady(function(){ |
50 YAHOO.util.Event.onDOMReady(function(){ | 50 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){ |
51 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | 51 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();}); |
52 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});}); | 52 YUE.preventDefault(e); |
53 },'.pager_link'); | |
54 }); | |
53 </script> | 55 </script> |
54 | 56 |
55 <div class="pagination-wh pagination-left"> | 57 <div class="pagination-wh pagination-left"> |
56 ${c.repo_changesets.pager('$link_previous ~2~ $link_next', | 58 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')} |
57 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ | |
58 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; | |
59 tooltip_activate(); | |
60 YUE.on(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | |
61 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); | |
62 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} | |
63 </div> | 59 </div> |
64 %else: | 60 %else: |
65 ${_('There are no changes yet')} | 61 ${_('There are no changes yet')} |
66 %endif | 62 %endif |