event preview for frost theme

This commit is contained in:
rabuzarus 2015-05-23 19:23:32 +02:00
parent de197405d0
commit 6731ffbfc8
3 changed files with 16 additions and 6 deletions

View file

@ -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;