From 22812c5f0dc57b1598912cf51fd1e5b721519f2d Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Fri, 18 Jan 2013 22:38:44 +0100 Subject: replace live() with on() in core js --- apps/files_external/js/google.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_external/js/google.js') diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 0b3c314eb5d..d26dc7f0014 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -33,7 +33,7 @@ $(document).ready(function() { } }); - $('#externalStorage tbody tr').live('change', function() { + $('#externalStorage tbody').on('change', 'tr', function() { if ($(this).hasClass('OC_Filestorage_Google') && $(this).find('[data-parameter="configured"]').val() != 'true') { if ($(this).find('.mountPoint input').val() != '') { if ($(this).find('.google').length == 0) { @@ -43,7 +43,7 @@ $(document).ready(function() { } }); - $('#externalStorage tbody tr .mountPoint input').live('keyup', function() { + $('#externalStorage tbody').on('keyup', 'tr .mountPoint input', function() { var tr = $(this).parent().parent(); if ($(tr).hasClass('OC_Filestorage_Google') && $(tr).find('[data-parameter="configured"]').val() != 'true' && $(tr).find('.google').length > 0) { if ($(this).val() != '') { @@ -54,7 +54,7 @@ $(document).ready(function() { } }); - $('.google').live('click', function(event) { + $('.google').on('click', function(event) { event.preventDefault(); var tr = $(this).parent().parent(); var configured = $(this).parent().find('[data-parameter="configured"]'); -- cgit v1.2.3