From: Coleman Watts Date: Mon, 1 Apr 2013 17:38:32 +0000 (-0700) Subject: Fix js strict error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=01fcc00c863c1aee0438062fb21520e808d52880;p=civicrm-core.git Fix js strict error --- diff --git a/js/Common.js b/js/Common.js index 275c0c2ecc..077003b13f 100644 --- a/js/Common.js +++ b/js/Common.js @@ -565,7 +565,7 @@ CRM.validate = CRM.validate || { .live('mouseover', function(e) { $(this).addClass('crm-tooltip-active'); - topDistance = e.pageY - $(window).scrollTop(); + var topDistance = e.pageY - $(window).scrollTop(); if (topDistance < 300 | topDistance < $(this).children('.crm-tooltip-wrapper').height()) { $(this).addClass('crm-tooltip-down'); }