Fixed javascript error due to archive button permissions - http://www.zoneminder.com/forums/viewtopic.php?t=15387
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3286 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
45f1ee9c36
commit
240027dd98
|
@ -230,15 +230,18 @@ function getEventResponse( respObj, respText )
|
||||||
$('dataScore').set( 'text', event.TotScore+"/"+event.AvgScore+"/"+event.MaxScore );
|
$('dataScore').set( 'text', event.TotScore+"/"+event.AvgScore+"/"+event.MaxScore );
|
||||||
$('eventName').setProperty( 'value', event.Name );
|
$('eventName').setProperty( 'value', event.Name );
|
||||||
|
|
||||||
if ( parseInt(event.Archived) )
|
if ( canEditEvents )
|
||||||
{
|
{
|
||||||
$('archiveEvent').addClass( 'hidden' );
|
if ( parseInt(event.Archived) )
|
||||||
$('unarchiveEvent').removeClass( 'hidden' );
|
{
|
||||||
}
|
$('archiveEvent').addClass( 'hidden' );
|
||||||
else
|
$('unarchiveEvent').removeClass( 'hidden' );
|
||||||
{
|
}
|
||||||
$('archiveEvent').removeClass( 'hidden' );
|
else
|
||||||
$('unarchiveEvent').addClass( 'hidden' );
|
{
|
||||||
|
$('archiveEvent').removeClass( 'hidden' );
|
||||||
|
$('unarchiveEvent').addClass( 'hidden' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//var eventImg = $('eventImage');
|
//var eventImg = $('eventImage');
|
||||||
//eventImg.setStyles( { 'width': event.width, 'height': event.height } );
|
//eventImg.setStyles( { 'width': event.width, 'height': event.height } );
|
||||||
|
|
Loading…
Reference in New Issue