From 7a25717da6685139927eb53280dced154d9299e7 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Thu, 24 Dec 2015 19:51:36 +0100 Subject: [PATCH] Fixed donate button. --- src/UI/Navbar/NavbarLayout.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/UI/Navbar/NavbarLayout.js b/src/UI/Navbar/NavbarLayout.js index 85fb37330..c364a0923 100644 --- a/src/UI/Navbar/NavbarLayout.js +++ b/src/UI/Navbar/NavbarLayout.js @@ -28,14 +28,17 @@ module.exports = Marionette.Layout.extend({ }, onClick : function(event) { - - event.preventDefault(); - var target = $(event.target); //look down for 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]) {