diff options
Diffstat (limited to 'view/tpl/event_head.tpl')
-rwxr-xr-x | view/tpl/event_head.tpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 11dba2f9d..6b59eef27 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -7,11 +7,20 @@ $.get( '{{$baseurl}}/events/?id='+eventid, function(data){ - $.colorbox({ html: data }); + $.colorbox({ scrolling: false, html: data, onComplete: function() { $.colorbox.resize(); }}); } ); } + function doEventPreview() { + $('#event-edit-preview').val(1); + $.post('events',$('#event-edit-form').serialize(), function(data) { + $.colorbox({ html: data }); + }); + $('#event-edit-preview').val(0); + } + + $(document).ready(function() { $('#events-calendar').fullCalendar({ events: '{{$baseurl}}/events/json/', |