+<div id="calendar">
<div align="center" style="border: 1px solid black; background: #eee">
+<script>
+ function redo_self(arg) {
+ new Ajax.Updater("calendar","[%base%]/calendar?view_cal="+arg, { method: "get" })
+ }
+</script>
[% IF request.action == "view" %]
[% SET shot = photo.shot %]
[% END %]
[% SET calendar = request.calendar(date.ymd) %]
<table class="calendar">
<tr>
- <th> <a href="[%base%]/[%request.path%]?view_cal=[%prev.ymd%]">« </a></th>
+ <th> <a href="javascript:redo_self('[%prev.ymd%]')">« </a></th>
<th colspan="5">
[% date.strftime("%Y-%m") %]
</th>
<th> [% IF next %]
- <a href="[%base%]/[%request.path%]?view_cal=[%next.ymd%]">» </a>
+ <a href="javascript:redo_self('[%next.ymd%]')">» </a>
[% END %]
</th>
</tr>
[% END %]
</table>
</div>
+</div>