]> source.dussan.org Git - nextcloud-server.git/commit
Add timeout to user and group deletion notification
authorVincent Petry <pvince81@owncloud.com>
Thu, 11 Sep 2014 13:56:00 +0000 (15:56 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 18 Sep 2014 08:22:10 +0000 (10:22 +0200)
commit35cb14c95f30e20e22633fdfa8a252de0205cb96
tree49010a3d2489eb907b5b184119d86df3af0cf4bd
parent28f462095db4f0171ab2f34d6b51c5d162808b8b
Add timeout to user and group deletion notification

Added timeout in DeleteHandler to auto-delete after a delay.

Fixed issue where OC.Notification.hide() was called twice in a row when
deleting multiple entries, causing the second notification to disappear.
Fixed issue where "undo" click event handler was registered multiple
times when calling setNotifications() twice.
Added JS unit tests for the DeleteHandler class.

Refix undo users, groups feature

Timeout is now cleared in cancel().

Fixed click handler name for "undo" to be able to work with multiple
DeleteHandler instances (in our case one for users and one for groups)
so that there is no conflict.

Backport of 0d9f24a0efef20b9041e40817b10822a4700532d from master
settings/js/users/deleteHandler.js
settings/tests/js/users/deleteHandlerSpec.js [new file with mode: 0644]
tests/karma.config.js