Calendar: Add cmd-click to deselect event (fixes #471)
This commit is contained in:
parent
8634476e48
commit
1d8119df4f
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||||
|
if (data.metaKey) {
|
||||||
|
selectEvent('');
|
||||||
|
} else {
|
||||||
panToSelected();
|
panToSelected();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
selectEvent(id, $target);
|
selectEvent(id, $target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue