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 /settings/js/users.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 'settings/js/users.js')
-rw-r--r-- | settings/js/users.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index ce49eb69c3c..094cddda294 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -263,7 +263,7 @@ $(document).ready(function () { UserList.applyMultiplySelect($(element)); }); - $('td.remove>a').live('click', function (event) { + $('table').on('click', 'td.remove>a', function (event) { var row = $(this).parent().parent(); var uid = $(row).attr('data-uid'); $(row).hide(); @@ -271,7 +271,7 @@ $(document).ready(function () { UserList.do_delete(uid); }); - $('td.password>img').live('click', function (event) { + $('table').on('click', 'td.password>img', function (event) { event.stopPropagation(); var img = $(this); var uid = img.parent().parent().attr('data-uid'); @@ -299,11 +299,11 @@ $(document).ready(function () { img.css('display', ''); }); }); - $('td.password').live('click', function (event) { + $('table').on('click', 'td.password', function (event) { $(this).children('img').click(); }); - $('td.displayName>img').live('click', function (event) { + $('table').on('click', 'td.displayName>img', function (event) { event.stopPropagation(); var img = $(this); var uid = img.parent().parent().attr('data-uid'); @@ -332,12 +332,12 @@ $(document).ready(function () { img.css('display', ''); }); }); - $('td.displayName').live('click', function (event) { + $('table').on('click', 'td.displayName', function (event) { $(this).children('img').click(); }); - $('select.quota, select.quota-user').live('change', function () { + $('select.quota, select.quota-user').on('change', function () { var select = $(this); var uid = $(this).parent().parent().parent().attr('data-uid'); var quota = $(this).val(); @@ -356,7 +356,7 @@ $(document).ready(function () { $(select).data('previous', $(select).val()); }) - $('input.quota-other').live('change', function () { + $('input.quota-other').on('change', function () { var uid = $(this).parent().parent().parent().attr('data-uid'); var quota = $(this).val(); var select = $(this).prev(); @@ -392,7 +392,7 @@ $(document).ready(function () { } }); - $('input.quota-other').live('blur', function () { + $('input.quota-other').on('blur', function () { $(this).change(); }) @@ -439,7 +439,7 @@ $(document).ready(function () { }); // Handle undo notifications OC.Notification.hide(); - $('#notification .undo').live('click', function () { + $('#notification').on('click', '.undo', function () { if ($('#notification').data('deleteuser')) { $('tbody tr').filterAttr('data-uid', UserList.deleteUid).show(); UserList.deleteCanceled = true; |