Fix js strict error
authorColeman Watts <coleman@civicrm.org>
Mon, 1 Apr 2013 17:38:32 +0000 (10:38 -0700)
committerColeman Watts <coleman@civicrm.org>
Mon, 1 Apr 2013 17:38:32 +0000 (10:38 -0700)
js/Common.js

index 275c0c2ecc37fc21660f04c8c5b072800562ed59..077003b13fbb1c8b87feb5f4e525692a527f3518 100644 (file)
@@ -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');
             }