New: iCal calendar feed.

This commit is contained in:
Taloth Saldono 2014-03-14 21:30:49 +01:00 committed by Taloth
commit 794c09c17a
7 changed files with 61 additions and 44 deletions

View file

@ -29,17 +29,21 @@ define(
return;
}
event.preventDefault();
var href = event.target.getAttribute('href');
if (!href && $target.closest('a') && $target.closest('a')[0]) {
var linkElement = $target.closest('a')[0];
if ($(linkElement).hasClass('no-router')) {
return;
}
href = linkElement.getAttribute('href');
}
event.preventDefault();
if (!href) {
throw 'couldn\'t find route target';
}