.observe('mouseover', div.addClassName.curry('kronolithSelected'))
.observe('mouseout', div.removeClassName.curry('kronolithSelected'));
$('kronolithMonthDay' + date.key).insert(div);
- new Drag('kronolithEventmonth' + r.response.cal + event.key, { parentElement: function() { return $('kronolithViewMonth').select('.kronolithViewBody')[0]; }, snapToParent: true });
+ if (event.value.e) {
+ new Drag('kronolithEventmonth' + r.response.cal + event.key, { parentElement: function() { return $('kronolithViewMonth').select('.kronolithViewBody')[0]; }, snapToParent: true });
+ }
break;
}
}, this);
$json->c = $this->getCalendar();
$json->bg = $this->_backgroundColor;
$json->fg = $this->_foregroundColor;
+ $json->e = $this->hasPermission(PERMS_EDIT);
return $json;
}