1
0
Fork 0

event preview for frost theme

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

View file

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