quotes
This commit is contained in:
parent
d98dde4aee
commit
3dc35c49a2
|
@ -43,7 +43,7 @@ var serverId = '<?php echo defined('ZM_SERVER_ID') ? ZM_SERVER_ID : '' ?>';
|
||||||
var canView = {};
|
var canView = {};
|
||||||
var canEdit = {};
|
var canEdit = {};
|
||||||
<?php
|
<?php
|
||||||
$perms = array("Stream", "Events", "Control", "Monitors", "Groups", "System", "Devices");
|
$perms = array('Stream', 'Events', 'Control', 'Monitors', 'Groups', 'System', 'Devices');
|
||||||
foreach ( $perms as $perm ) {
|
foreach ( $perms as $perm ) {
|
||||||
?>
|
?>
|
||||||
canView["<?php echo $perm ?>"] = <?php echo canView($perm)?'true':'false' ?>;
|
canView["<?php echo $perm ?>"] = <?php echo canView($perm)?'true':'false' ?>;
|
||||||
|
@ -60,7 +60,7 @@ if ( ! empty($refreshParent) ) {
|
||||||
echo 'true';
|
echo 'true';
|
||||||
} else if ( $refreshParent ) {
|
} else if ( $refreshParent ) {
|
||||||
# This is to tell the parent to refresh to a specific URL
|
# This is to tell the parent to refresh to a specific URL
|
||||||
echo "'$refreshParent'";
|
echo '\''.$refreshParent.'\'';
|
||||||
} else {
|
} else {
|
||||||
echo 'false';
|
echo 'false';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue