[geeklog-hg] geeklog: Replaced live() method with on() method

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Feb 4 06:54:41 EST 2013


changeset 8935:13911619e41e
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/13911619e41e
user: Kenji ITO <mystralkk at gmail.com>
date: Sat Feb 02 11:26:09 2013 +0900
description:
Replaced live() method with on() method

diffstat:

 public_html/javascript/admin.configuration.js |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r d05c02744742 -r 13911619e41e public_html/javascript/admin.configuration.js
--- a/public_html/javascript/admin.configuration.js	Thu Jan 31 17:54:56 2013 -0500
+++ b/public_html/javascript/admin.configuration.js	Sat Feb 02 11:26:09 2013 +0900
@@ -139,7 +139,7 @@
     );
     $('body').append(tooltipContainer);
 
-    $('.tooltip').live('mouseover touchend', function() {
+    $(document).on('mouseover touchend', '.tooltip', function() {
         var attrHref = glConfigDocUrl;
         var jqobj = $(this);
 
@@ -193,7 +193,7 @@
         
         tooltipContainer.show();
     });
-    $('.tooltip').live('mouseout', function() {
+    $(document).on('mouseout', '.tooltip', function() {
         if ( tooltipHideTimer ) clearTimeout(tooltipHideTimer);
         
         tooltipHideTimer = setTimeout(function() {
@@ -210,7 +210,7 @@
             tooltipContainer.hide();
         }, tooltipHideDelay);
     });
-    $('#tooltip-close').live('click touchout', function() {
+    $(document).on('click touchout', '#tooltip-close', function() {
         if ( tooltipHideTimer ) clearTimeout(tooltipHideTimer);
         tooltipContainer.hide();
     });
@@ -288,7 +288,7 @@
     });
     
     // dropdown click
-    $('#tabs-dropdown').live('click', function(e) {
+    $(document).on('click', '#tabs-dropdown', function(e) {
         dropDownHandler(e);
     });
     



More information about the geeklog-cvs mailing list