[Pkg-owncloud-commits] [owncloud] 104/394: Cleanup user settings js

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:38 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 780f2293d6b3eefe5fe9bc4203c192b501a5406c
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Wed Nov 14 21:23:27 2012 +0100

    Cleanup user settings js
---
 settings/js/users.js |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/settings/js/users.js b/settings/js/users.js
index bce0ac3..5c7357c 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -29,7 +29,6 @@ var UserList={
 		$('#notification').html(t('users', 'deleted')+' '+uid+'<span class="undo">'+t('users', 'undo')+'</span>');
 		$('#notification').data('deleteuser',true);
 		$('#notification').fadeIn();
-			
 	},
 	
 	/**
@@ -57,7 +56,6 @@ var UserList={
 						$('#notification').fadeOut();
 						$('tr').filterAttr('data-uid', UserList.deleteUid).remove();
 						UserList.deleteCanceled = true;
-						UserList.deleteFiles = null;
 						if (ready) {
 							ready();
 						}
@@ -401,13 +399,8 @@ $(document).ready(function(){
 	$('#notification').hide();
 	$('#notification .undo').live('click', function() {
 		if($('#notification').data('deleteuser')) {
-			$('tbody tr').each(function(index, row) {
-				if ($(row).data('uid') == UserList.deleteUid) {
-					$(row).show();
-				}
-			});
+			$('tbody tr').filterAttr('data-uid', UserList.deleteUid).show();
 			UserList.deleteCanceled=true;
-			UserList.deleteFiles=null;
 		}
 		$('#notification').fadeOut();
 	});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list