Skip to content
Snippets Groups Projects
Commit 7183d444 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

integrated jQuery UI's datepicker.

parent ee5257de
No related branches found
No related tags found
No related merge requests found
* integrate calendar into day schedule view
* integrate tinyMCE into admin site
* integrate open ID
* integrate Disqus
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment