(js) Remove resize grips to short events

Fixes #3771
This commit is contained in:
Francis Lachapelle 2016-09-30 09:31:01 -04:00
parent 4d7242bfc6
commit 9046bae712
2 changed files with 4 additions and 0 deletions

1
NEWS
View file

@ -27,6 +27,7 @@ Bug fixes
- [web] fixed ripple blocking the form when submitting no values (#3808) - [web] fixed ripple blocking the form when submitting no values (#3808)
- [web] fixed error handling when renaming a mailbox - [web] fixed error handling when renaming a mailbox
- [web] handle binary content transfer encoding when displaying mails - [web] handle binary content transfer encoding when displaying mails
- [web] removed resize grips to short events (#3771)
- [core] strip protocol value from proxyAddresses attribute (#3182) - [core] strip protocol value from proxyAddresses attribute (#3182)
- [core] we now search in all domain sources for Apple Calendar - [core] we now search in all domain sources for Apple Calendar
- [core] properly handle groups in Apple Calendar's delegation - [core] properly handle groups in Apple Calendar's delegation

View file

@ -45,6 +45,9 @@
var component, dayIndex, blockIndex, isFirstBlock, isLastBlock, var component, dayIndex, blockIndex, isFirstBlock, isLastBlock,
dragGrip, leftGrip, rightGrip, topGrip, bottomGrip; dragGrip, leftGrip, rightGrip, topGrip, bottomGrip;
// Don't show grips for blocks of less than 45 minutes
if (scope.block.length < 3) return;
component = scope.block.component; component = scope.block.component;
dayIndex = scope.block.dayIndex; dayIndex = scope.block.dayIndex;
blockIndex = _.findIndex(component.blocks, ['dayIndex', dayIndex]); blockIndex = _.findIndex(component.blocks, ['dayIndex', dayIndex]);