summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-01-18 22:38:44 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-30 17:00:54 +0100
commit22812c5f0dc57b1598912cf51fd1e5b721519f2d (patch)
tree13b9599505b4cc974fe8249898476b91640f63d7 /settings/js
parent5761bd771f4142394a00083712b63e77f8976946 (diff)
downloadnextcloud-server-22812c5f0dc57b1598912cf51fd1e5b721519f2d.tar.gz
nextcloud-server-22812c5f0dc57b1598912cf51fd1e5b721519f2d.zip
replace live() with on() in core js
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 424d00b51a7..0ee813f4cb3 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -262,7 +262,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();
@@ -270,7 +270,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');
@@ -298,11 +298,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');
@@ -336,7 +336,7 @@ $(document).ready(function () {
});
- $('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();
@@ -355,7 +355,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();
@@ -391,7 +391,7 @@ $(document).ready(function () {
}
});
- $('input.quota-other').live('blur', function () {
+ $('input.quota-other').on('blur', function () {
$(this).change();
})
@@ -438,7 +438,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;