mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-26 07:19:28 +00:00
(js) Only allow dragging of editable events
This commit is contained in:
@@ -21,9 +21,13 @@
|
||||
};
|
||||
|
||||
function link(scope, element, attrs, calendarDayCtrl) {
|
||||
if (scope.block)
|
||||
// Add dragging grips to existing event block
|
||||
initGrips();
|
||||
if (scope.block) {
|
||||
if (scope.block.component.editable)
|
||||
// Add dragging grips to existing event block
|
||||
initGrips();
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
// Start dragging on mousedown
|
||||
element.on('mousedown', onDragDetect);
|
||||
|
||||
Reference in New Issue
Block a user