"show details" now work corretly when not on first page
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 13 Mar 2004 17:46:47 +0000 (17:46 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 13 Mar 2004 17:46:47 +0000 (17:46 +0000)
git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@271 13eb9ef6-21d5-0310-b721-a9d68796d827

template_html/results.html

index 27c3f0b..1d85ce2 100644 (file)
@@ -61,7 +61,7 @@
   <input nowrap type=button value="+" onClick="do_checkbox('path',1)">
   <input nowrap type=button value="-" onClick="do_checkbox('path',0)">
   <input nowrap type=button value="&#177;" onClick="do_checkbox('path',-1)">
-  <input nowrap type=submit name="show_full" value="Poka¾i detalje o odabranim jedinicama" onClick="PAGER_set_offset_and_submit(0);">
+  <input nowrap type=submit name="show_full" value="Poka¾i detalje o odabranim jedinicama" onClick="PAGER_set_offset_and_submit(<TMPL_VAR PAGER_offset>);">
   <input type="hidden" name="last_PAGER_offset" value="<TMPL_VAR PAGER_offset>" />
 
   </td></tr>
@@ -88,7 +88,7 @@
   <input nowrap type=button value="+" onClick="do_checkbox('path',1)">
   <input nowrap type=button value="-" onClick="do_checkbox('path',0)">
   <input nowrap type=button value="&#177;" onClick="do_checkbox('path',-1)">
-  <input type=submit name="show_full" value="Poka¾i detalje o odabranim jedinicama" onClick="PAGER_set_offset_and_submit(0);">
+  <input type=submit name="show_full" value="Poka¾i detalje o odabranim jedinicama" onClick="PAGER_set_offset_and_submit(<TMPL_VAR last_PAGER_offset>);">
   </TMPL_IF>
   </td></tr>
   <TR><TD COLSPAN=2 ALIGN=CENTER class="navigacija">