From: rabuzarus <> Date: Sat, 23 May 2015 17:23:32 +0000 (+0200) Subject: event preview for frost theme X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6731ffbfc8eeeda4c60b1693e45ea0a708a4ebce;p=friendica.git event preview for frost theme --- diff --git a/view/templates/event_head.tpl b/view/templates/event_head.tpl index 31f389d9e3..4b34ee182f 100644 --- a/view/templates/event_head.tpl +++ b/view/templates/event_head.tpl @@ -14,11 +14,11 @@ } function doEventPreview() { - $('#event-edit-preview').val(1); - $.post('events',$('#event-edit-form').serialize(), function(data) { - $.colorbox({ html: data }); - }); - $('#event-edit-preview').val(0); + $('#event-edit-preview').val(1); + $.post('events',$('#event-edit-form').serialize(), function(data) { + $.colorbox({ html: data }); + }); + $('#event-edit-preview').val(0); } diff --git a/view/theme/frost/js/theme.js b/view/theme/frost/js/theme.js index 5d61d5ae89..1de9d3a96b 100644 --- a/view/theme/frost/js/theme.js +++ b/view/theme/frost/js/theme.js @@ -353,6 +353,14 @@ function showEvent(eventid) { ); } +function doEventPreview() { + $('#event-edit-preview').val(1); + $.post('events',$('#event-edit-form').serialize(), function(data) { + $.colorbox({ html: data }); + }); + $('#event-edit-preview').val(0); +} + function initCrop() { function onEndCrop( coords, dimensions ) { $PR( 'x1' ).value = coords.x1; diff --git a/view/theme/frost/templates/event_form.tpl b/view/theme/frost/templates/event_form.tpl index f8e1d65605..f348512b45 100644 --- a/view/theme/frost/templates/event_form.tpl +++ b/view/theme/frost/templates/event_form.tpl @@ -5,11 +5,12 @@ {{$desc}}

-
+ +
{{$s_text}}
{{$s_dsel}} {{$s_tsel}} @@ -45,6 +46,7 @@ {{$acl}}
+