return option.value == ev.r;
}).selected = true;
}
- if (ev.ed) {
+ if (ev.pe) {
$('kronolithEventSave').show();
$('kronolithEventForm').enable();
} else {
$('kronolithEventForm').disable();
$('kronolithEventCancel').enable();
}
- if (ev.d) {
+ if (ev.pd) {
$('kronolithEventDelete').show();
} else {
$('kronolithEventDelete').hide();
$json->e = $this->end->toJson();
$json->bg = $this->_backgroundColor;
$json->fg = $this->_foregroundColor;
- $json->ed = $this->hasPermission(PERMS_EDIT);
- $json->d = $this->hasPermission(PERMS_DELETE);
+ $json->pe = $this->hasPermission(PERMS_EDIT);
+ $json->pd = $this->hasPermission(PERMS_DELETE);
if ($this->alarm) {
if ($this->alarm % 10080 == 0) {
$alarm_value = $this->alarm / 10080;