mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-03-05 15:15:59 +02:00
Fixed donate button.
This commit is contained in:
parent
7e1c444c02
commit
7a25717da6
@ -28,14 +28,17 @@ module.exports = Marionette.Layout.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onClick : function(event) {
|
onClick : function(event) {
|
||||||
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
var target = $(event.target);
|
var target = $(event.target);
|
||||||
|
|
||||||
//look down for <a/>
|
//look down for <a/>
|
||||||
var href = event.target.getAttribute('href');
|
var href = event.target.getAttribute('href');
|
||||||
|
|
||||||
|
if (href && href.startsWith("http")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
//if couldn't find it look up'
|
//if couldn't find it look up'
|
||||||
if (!href && target.closest('a') && target.closest('a')[0]) {
|
if (!href && target.closest('a') && target.closest('a')[0]) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user