diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-03 21:55:54 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-03 21:55:54 -0800 |
commit | 04b97a1906c40451880ef3534fc7fd87fcbdc438 (patch) | |
tree | ed0aac53a68322cf52204402f68e1f91d0a2306d /apps/files_external/js/google.js | |
parent | 5ceddabaa65396d42fe67b4b6de5cd72bcb28f11 (diff) | |
parent | b1da1db0eb5d738d5d5e5379796c048614d2ba00 (diff) | |
download | nextcloud-server-04b97a1906c40451880ef3534fc7fd87fcbdc438.tar.gz nextcloud-server-04b97a1906c40451880ef3534fc7fd87fcbdc438.zip |
Merge pull request #1229 from owncloud/from_live_to_on
replace live() with on() in core js
Diffstat (limited to 'apps/files_external/js/google.js')
-rw-r--r-- | apps/files_external/js/google.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 7d759d13da4..9b7f9514f12 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -33,8 +33,7 @@ $(document).ready(function() { } }); - $('#externalStorage tbody tr').live('change', function() { - console.log('hello'); + $('#externalStorage tbody').on('change', 'tr', function() { if ($(this).hasClass('\\\\OC\\\\Files\\\\Storage\\\\Google') && $(this).find('[data-parameter="configured"]').val() != 'true') { if ($(this).find('.mountPoint input').val() != '') { if ($(this).find('.google').length == 0) { @@ -44,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\\\\Files\\\\Storage\\\\Google') && $(tr).find('[data-parameter="configured"]').val() != 'true' && $(tr).find('.google').length > 0) { if ($(this).val() != '') { @@ -55,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"]'); |