1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed donate button.

This commit is contained in:
Taloth Saldono 2015-12-24 19:51:36 +01:00
parent 7e1c444c02
commit 7a25717da6

View File

@ -28,14 +28,17 @@ module.exports = Marionette.Layout.extend({
},
onClick : function(event) {
event.preventDefault();
var target = $(event.target);
//look down for <a/>
var href = event.target.getAttribute('href');
if (href && href.startsWith("http")) {
return;
}
event.preventDefault();
//if couldn't find it look up'
if (!href && target.closest('a') && target.closest('a')[0]) {