mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
(js) Remove draggable CSS class when not editable
This commit is contained in:
1 parent
20b3a98282
commit
49fb7b3487
1 file changed
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user