Calendar: Add cmd-click to deselect event (fixes #471)

This commit is contained in:
rolux 2012-03-07 13:12:57 +01:00
parent 8634476e48
commit 1d8119df4f

View file

@ -1178,7 +1178,11 @@ Ox.Calendar = function(options, self) {
id = $target.data('id'); id = $target.data('id');
if ($target.is('.OxLine > .OxEvent')) { if ($target.is('.OxLine > .OxEvent')) {
if (id == self.options.selected) { if (id == self.options.selected) {
panToSelected(); if (data.metaKey) {
selectEvent('');
} else {
panToSelected();
}
} else { } else {
selectEvent(id, $target); selectEvent(id, $target);
} }