diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-04 23:37:21 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-04 23:37:21 +0100 |
commit | 594d388ad9121c2c2808e83ca77513390853a355 (patch) | |
tree | be7f4a004a2b93fa513ddc034da4ac4266ce951c | |
parent | ba475d486258c0b7ea86cd766814053df6c69170 (diff) | |
download | nextcloud-server-594d388ad9121c2c2808e83ca77513390853a355.tar.gz nextcloud-server-594d388ad9121c2c2808e83ca77513390853a355.zip |
new javascript notification functions used within users.js
-rw-r--r-- | settings/js/users.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index b0e30feb80c..a01b4cab952 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -26,9 +26,8 @@ var UserList = { UserList.deleteCanceled = false; // Provide user with option to undo - $('#notification').html(t('users', 'deleted') + ' ' + uid + '<span class="undo">' + t('users', 'undo') + '</span>'); $('#notification').data('deleteuser', true); - $('#notification').fadeIn(); + OC.Notification.showHtml(t('users', 'deleted') + ' ' + uid + '<span class="undo">' + t('users', 'undo') + '</span>'); }, /** @@ -53,7 +52,7 @@ var UserList = { success:function (result) { if (result.status == 'success') { // Remove undo option, & remove user from table - $('#notification').fadeOut(); + OC.Notification.hide(); $('tr').filterAttr('data-uid', UserList.deleteUid).remove(); UserList.deleteCanceled = true; if (ready) { @@ -401,13 +400,13 @@ $(document).ready(function () { ); }); // Handle undo notifications - $('#notification').hide(); + OC.Notification.hide(); $('#notification .undo').live('click', function () { if ($('#notification').data('deleteuser')) { $('tbody tr').filterAttr('data-uid', UserList.deleteUid).show(); UserList.deleteCanceled = true; } - $('#notification').fadeOut(); + OC.Notification.hide(); }); UserList.useUndo = ('onbeforeunload' in window) $(window).bind('beforeunload', function () { |