(js) Remove draggable CSS class when not editable

pull/186/head
Francis Lachapelle 2015-12-09 20:13:19 -05:00
parent 20b3a98282
commit 49fb7b3487
1 changed files with 5 additions and 2 deletions

View File

@ -22,11 +22,14 @@
function link(scope, element, attrs, calendarDayCtrl) {
if (scope.block) {
if (scope.block.component.editable)
if (scope.block.component.editable) {
// Add dragging grips to existing event block
initGrips();
else
}
else {
element.removeClass('sg-draggable-calendar-block');
return;
}
}
// Start dragging on mousedown