mirror of https://github.com/lidarr/Lidarr
Fixed donate button.
This commit is contained in:
parent
7e1c444c02
commit
7a25717da6
|
@ -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]) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue