Fixes selection update for deleted entries.

This commit is contained in:
Lars Jung 2012-08-11 13:36:51 +02:00
parent 0b6b2b0f33
commit cc7d9ee912
3 changed files with 11 additions and 8 deletions

View file

@ -125,6 +125,14 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/event'], functio
$selectionRect.hide().appendTo('body');
event.sub('entry.removed', function (entry) {
if (entry.$extended && entry.$extended.hasClass('selected')) {
entry.$extended.removeClass('selected');
publish();
}
});
$document
.on('mousedown', '.noSelection', noSelection)
.on('mousedown', '.noSelectionUnlessCtrl,input,a', noSelectionUnlessCtrl)