(js) Only allow dragging of editable events

This commit is contained in:
Francis Lachapelle
2015-11-26 13:31:26 -05:00
parent 2e2d8b6963
commit 00b22a71db

View File

@@ -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);