summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHash9 <hash9@users.sourceforge.net>2006-02-02 14:39:47 +0000
committerHash9 <hash9@users.sourceforge.net>2006-02-02 14:39:47 +0000
commita06df5176d1c67d91fa2e5a2f3b5e2bbcfcf7773 (patch)
tree3763e7e558327d602983f651671cf228141cdfa4 /templates
parent1f622e8ba676f2aeeda1a3571eec3990652b2a80 (diff)
downloadcalendar-a06df5176d1c67d91fa2e5a2f3b5e2bbcfcf7773.tar.gz
calendar-a06df5176d1c67d91fa2e5a2f3b5e2bbcfcf7773.tar.bz2
calendar-a06df5176d1c67d91fa2e5a2f3b5e2bbcfcf7773.zip
add the (default) option to sort by event date
Diffstat (limited to 'templates')
-rw-r--r--templates/calendar_nav_inc.tpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/calendar_nav_inc.tpl b/templates/calendar_nav_inc.tpl
index 92e0390..915a335 100644
--- a/templates/calendar_nav_inc.tpl
+++ b/templates/calendar_nav_inc.tpl
@@ -6,7 +6,8 @@
<li>{smartlink ititle="Only my items" user_id=$gBitUser->mUserId sort_mode=$smarty.request.sort_mode}</li>
{/if}
<li>{smartlink ititle="Creation date" isort="created"}</li>
- <li>{smartlink ititle="Modification date" idefault=1 isort="last_modified"}</li>
+ <li>{smartlink ititle="Modification date" isort="last_modified"}</li>
+ <li>{smartlink ititle="Event time" idefault=1 isort="event_time"}</li>
</ul>
</div>
@@ -19,6 +20,7 @@
<td>
<div>
{form method="get" id="f"}
+ <input type="hidden" id="sort_mode" name="sort_mode" value="{$smarty.request.sort_mode}" />
<input type="hidden" id="todate" name="todate" value="{$navigation.focus_date|cal_date_format:"%B %e, %Y %H:%M %Z"}" />
<span class="highlight" style="cursor:pointer;" title="{tr}Date Selector{/tr}" id="datrigger">{$navigation.focus_date|bit_long_date}</span>
&nbsp;&nbsp;&nbsp;<small>&laquo;&nbsp;{tr}click to navigate{/tr}</small>
@@ -27,7 +29,7 @@
<script type="text/javascript">//<![CDATA[
function gotocal() {ldelim}
- window.location = '{$gBitLoc.CALENDAR_PKG_URL}index.php?todate='+document.getElementById('todate').value;
+ document.getElementById('f').submit();
{rdelim}
Calendar.setup( {ldelim}