(js) Remove draggable CSS class when not editable
parent
20b3a98282
commit
49fb7b3487
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue