Mercurial > kallithea
comparison rhodecode/templates/journal/journal_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 | c96651aebd8a |
children | 753aeb4a5c58 |
comparison
equal
deleted
inserted
replaced
1420:a2fe0ac8d007 | 1421:c6b811f11c94 |
---|---|
31 %endfor | 31 %endfor |
32 %endfor | 32 %endfor |
33 | 33 |
34 <div class="pagination-wh pagination-left"> | 34 <div class="pagination-wh pagination-left"> |
35 <script type="text/javascript"> | 35 <script type="text/javascript"> |
36 var data_div = 'journal'; | 36 YUE.onDOMReady(function(){ |
37 YAHOO.util.Event.onDOMReady(function(){ | 37 YUE.delegate("journal","click",function(e, matchedEl, container){ |
38 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | 38 ypjax(e.target.href,"journal",function(){show_more_event();tooltip_activate();}); |
39 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});}); | 39 YUE.preventDefault(e); |
40 },'.pager_link'); | |
41 }); | |
40 </script> | 42 </script> |
41 ${c.journal_pager.pager('$link_previous ~2~ $link_next', | 43 ${c.journal_pager.pager('$link_previous ~2~ $link_next')} |
42 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ | |
43 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; | |
44 show_more_event(); | |
45 tooltip_activate(); | |
46 YUE.on(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | |
47 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); | |
48 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} | |
49 </div> | 44 </div> |
50 | |
51 %else: | 45 %else: |
52 ${_('No entries yet')} | 46 ${_('No entries yet')} |
53 %endif | 47 %endif |
54 | |
55 <script type="text/javascript"> | |
56 show_more_event(); | |
57 </script> |