Spacing
This commit is contained in:
parent
46a13237b5
commit
d7680e1a44
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
ini_set('display_errors','0');
|
ini_set('display_errors', '0');
|
||||||
|
|
||||||
if ( empty($_REQUEST['id']) && empty($_REQUEST['eids']) ) {
|
if ( empty($_REQUEST['id']) && empty($_REQUEST['eids']) ) {
|
||||||
ajaxError('No event id(s) supplied');
|
ajaxError('No event id(s) supplied');
|
||||||
|
@ -28,8 +28,8 @@ if ( canView('Events') ) {
|
||||||
$ok = true;
|
$ok = true;
|
||||||
break;
|
break;
|
||||||
case 'deleteVideo' :
|
case 'deleteVideo' :
|
||||||
unlink( $videoFiles[$_REQUEST['id']] );
|
unlink($videoFiles[$_REQUEST['id']]);
|
||||||
unset( $videoFiles[$_REQUEST['id']] );
|
unset($videoFiles[$_REQUEST['id']]);
|
||||||
ajaxResponse();
|
ajaxResponse();
|
||||||
break;
|
break;
|
||||||
case 'export' :
|
case 'export' :
|
||||||
|
@ -110,7 +110,11 @@ if ( canView('Events') ) {
|
||||||
false#,#Compress
|
false#,#Compress
|
||||||
#$exportStructure
|
#$exportStructure
|
||||||
) ) {
|
) ) {
|
||||||
ajaxResponse(array('exportFile'=>$exportFile,'exportFormat'=>$exportFormat, 'connkey'=>(isset($_REQUEST['connkey'])?$_REQUEST['connkey']:'')));
|
ajaxResponse(array(
|
||||||
|
'exportFile'=>$exportFile,
|
||||||
|
'exportFormat'=>$exportFormat,
|
||||||
|
'connkey'=>(isset($_REQUEST['connkey'])?$_REQUEST['connkey']:'')
|
||||||
|
));
|
||||||
} else {
|
} else {
|
||||||
ajaxError('Export Failed');
|
ajaxError('Export Failed');
|
||||||
}
|
}
|
||||||
|
@ -145,7 +149,7 @@ if ( canEdit('Events') ) {
|
||||||
break;
|
break;
|
||||||
case 'delete' :
|
case 'delete' :
|
||||||
$Event = new ZM\Event($_REQUEST['id']);
|
$Event = new ZM\Event($_REQUEST['id']);
|
||||||
if ( ! $Event->Id() ) {
|
if ( !$Event->Id() ) {
|
||||||
ajaxResponse(array('refreshEvent'=>false, 'refreshParent'=>true, 'message'=> 'Event not found.'));
|
ajaxResponse(array('refreshEvent'=>false, 'refreshParent'=>true, 'message'=> 'Event not found.'));
|
||||||
} else {
|
} else {
|
||||||
$Event->delete();
|
$Event->delete();
|
||||||
|
|
Loading…
Reference in New Issue