From 05abdcbf5a7951796d6ad36b82ed6b01421ed6d6 Mon Sep 17 00:00:00 2001 From: Steve Schwartz Date: Thu, 9 May 2013 00:51:39 -0400 Subject: [PATCH] Use e.returnValue when e.preventDefault isn't defined (for IE 7) to prevent page jump when clicked. --- lib/jquery.easytabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jquery.easytabs.js b/lib/jquery.easytabs.js index b4b7a70..7620bb0 100644 --- a/lib/jquery.easytabs.js +++ b/lib/jquery.easytabs.js @@ -483,7 +483,7 @@ plugin.selectTab( $(this) ); // Don't follow the link to the anchor - e.preventDefault(); + e.preventDefault ? e.preventDefault() : e.returnValue = false; }); };