From 86188b085c47ec14a2e800cf566315d7197a4cfc Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 1 Apr 2013 10:43:51 -0700 Subject: [PATCH] Use 'on' method instead of deprecated 'live' --- js/Common.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/js/Common.js b/js/Common.js index 077003b13f..5423cb298a 100644 --- a/js/Common.js +++ b/js/Common.js @@ -562,8 +562,8 @@ CRM.validate = CRM.validate || { $.fn.crmtooltip = function(){ $('a.crm-summary-link') .addClass('crm-processed') - .live('mouseover', - function(e) { + .on('mouseover', + function(e) { $(this).addClass('crm-tooltip-active'); var topDistance = e.pageY - $(window).scrollTop(); if (topDistance < 300 | topDistance < $(this).children('.crm-tooltip-wrapper').height()) { @@ -576,17 +576,13 @@ CRM.validate = CRM.validate || { .load(this.href); } }) - .live('mouseout', + .on('mouseout', function(){ $(this).removeClass('crm-tooltip-active'); $(this).removeClass('crm-tooltip-down'); } ) - .live('click', - function(){ - return false; - } - ); + .on('click', false); }; var h; -- 2.25.1