diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-25 16:04:41 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-25 16:04:41 (GMT) |
commit | 7183d444b2bddc23c46d1b11599a4e43a60002d1 (patch) | |
tree | 8a7e058f4ffbde60976ad91d12bfcd429502204b /templates | |
parent | ee5257de10e846f5e8e6fe63b11aa2fa8b9cd2a9 (diff) |
integrated jQuery UI's datepicker.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/program/day_schedule.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/templates/program/day_schedule.html b/templates/program/day_schedule.html index 275930d..cf71bd7 100644 --- a/templates/program/day_schedule.html +++ b/templates/program/day_schedule.html @@ -1,6 +1,10 @@ <html> <head> <title>Day schedule: {{ day|date:"l, d.m.Y" }}</title> + <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> + <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"></script> + <script type="text/javascript" src="http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/jquery.ui.datepicker-de.js"></script> + <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/themes/base/jquery-ui.css" rel="stylesheet" /> </head> <body> @@ -12,7 +16,7 @@ </div> <div id="filter-topic"> <dl id="filter-header" class="portlet"> - <dt class="portletHeader"><span>Filter<span></dt> + <dt class="portletHeader"><span>Filter</span></dt> </dl> {% musicfocus %} {% showinformation %} @@ -53,6 +57,16 @@ </div> </div> +<script> + $(function() { + $("#calendar").datepicker({ + defaultDate: location.href.split('/').slice(4, 7).reverse().join('.'), + onSelect: function(dateText, inst) { + location = '/program/' + dateText.split('.').reverse().join('/'); + } + }); + }) +</script> </body> </html> |