(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
@@ -45,6 +45,9 @@
var component, dayIndex, blockIndex, isFirstBlock, isLastBlock,
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;
dayIndex = scope.block.dayIndex;
blockIndex = _.findIndex(component.blocks, ['dayIndex', dayIndex]);