From 92500c8a48753af2779b7732d579864c91630b9d Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 7 Jun 2011 17:35:02 +0200 Subject: outcomment while it's not workign diff --git a/nop/site_media/nowplaying_form.js b/nop/site_media/nowplaying_form.js index ce3d2aa..1c1384f 100644 --- a/nop/site_media/nowplaying_form.js +++ b/nop/site_media/nowplaying_form.js @@ -1,8 +1,8 @@ jQuery(document).ready(function() { - jQuery("#nop_date").dateinput({ + /*jQuery("#nop_date").dateinput({ format: 'yyyy-mm-dd', firstDay: 1 - }); + });*/ jQuery("#nop_time").AnyTime_picker({ format: "%H:%i", labelTitle: "Zeit", -- cgit v0.10.2 From ccdbc85dfcaff9724f92ecc16b9cbb9489786c5f Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 7 Jun 2011 17:35:28 +0200 Subject: portlet structure. externalize js init code diff --git a/templates/program/day_schedule.html b/templates/program/day_schedule.html index a9ac023..a260809 100644 --- a/templates/program/day_schedule.html +++ b/templates/program/day_schedule.html @@ -4,16 +4,24 @@ + -
+
+
Kalender
+
+
+
+
{% load content_boxes %}
{% broadcastformat %}
+ +{% comment %}
Filter
@@ -22,6 +30,7 @@ {% showinformation %} {% showtopic %}
+{% endcomment %}

Tagesansicht

@@ -97,16 +106,5 @@
- - -- cgit v0.10.2 From 5e8c752980b9a654dccdb1d6cc65e96b3d08cf13 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 7 Jun 2011 17:35:49 +0200 Subject: init calendar diff --git a/site_media/programcalendar.js b/site_media/programcalendar.js new file mode 100644 index 0000000..c4d91fc --- /dev/null +++ b/site_media/programcalendar.js @@ -0,0 +1,8 @@ +jQuery(document).ready(function() { + jQuery("#calendar").datepicker({ + defaultDate: location.href.split('/').slice(4, 7).reverse().join('.'), + onSelect: function(dateText, inst) { + location = '/programm/' + dateText.split('.').reverse().join('/'); + } + }); +}); -- cgit v0.10.2 From ede9fa059b6cbc82c7fd64c2f8009c9a250bc971 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 7 Jun 2011 17:36:14 +0200 Subject: fallback when calendar links to /programm instead of /program diff --git a/urls.py b/urls.py index e77334c..4432a53 100644 --- a/urls.py +++ b/urls.py @@ -7,6 +7,11 @@ admin.autodiscover() urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), (r'^program/', include('program.urls')), + (r'^programm/', include('program.urls')), # programcalendar.js has to link + # to /programm, so that deliverance integration works. that would + # break django compat, so this url rule is added. come up with a bttr + # solution and implement it to avoid redundancy and hacks. + # i don't care yet. (r'^nop', include('nop.urls')), (r'^tinymce/', include('tinymce.urls')), ) -- cgit v0.10.2