Changeset 2704 for trunk/template/yoga


Ignore:
Timestamp:
Oct 10, 2008, 11:41:07 PM (16 years ago)
Author:
rub
Message:

jQuery Datepicker:
Move code source to template-common in order to use datepicker on version after butterfly

Location:
trunk/template/yoga
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/default-layout.css

    r2677 r2704  
    277277#theNotificationPage dl,
    278278#thePopuphelpPage dl { margin: 0 25px 25px; }
     279
     280/* jQuery datepicker */
     281img.ui-datepicker-trigger {
     282        cursor : pointer;
     283}
  • trunk/template/yoga/search.tpl

    r2690 r2704  
    11{* $Id$ *}
     2
     3{* Example of datepicker
     4{include file='include/datepicker.inc.tpl'}
     5
     6{literal}
     7<script type="text/javascript">
     8  pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date");
     9  pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null);
     10 jQuery().ready(function(){ $(".date_today").hide(); });
     11</script>
     12{/literal}
     13*}
     14
    215<div id="content" class="content">
    316
     
    7588    </li>
    7689    <li>
    77       <a href="#" onClick="document.search.start_day.value={$smarty.now|date_format:"%d"};document.search.start_month.value={$smarty.now|date_format:"%m"};document.search.start_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
     90      <a class="date_today" href="#" onClick="document.search.start_day.value={$smarty.now|date_format:"%d"};document.search.start_month.value={$smarty.now|date_format:"%m"};document.search.start_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
    7891    </li>
    7992  </ul>
     
    94107    </li>
    95108    <li>
    96       <a href="#" onClick="document.search.end_day.value={$smarty.now|date_format:"%d"};document.search.end_month.value={$smarty.now|date_format:"%m"};document.search.end_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
     109      <a class="date_today" href="#" onClick="document.search.end_day.value={$smarty.now|date_format:"%d"};document.search.end_month.value={$smarty.now|date_format:"%m"};document.search.end_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
    97110    </li>
    98111  </ul>
Note: See TracChangeset for help on using the changeset viewer.