Fixed donate button.

pull/1029/head
Taloth Saldono 9 years ago
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…
Cancel
Save