(js) Only allow dragging of editable events
parent
2e2d8b6963
commit
00b22a71db
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue